Имя пакета отображается как "root" в конвейере Jenkin с Cypress Junit Reporter - PullRequest
0 голосов
/ 28 апреля 2020

Я использую Cypress с JUnit Reporter, а пакет автоматизации работает в Jenkin. Но в результатах теста Jenkin's Junit имя пакета всегда показывает root.

Как я могу изменить его с root на любое другое имя?

enter image description here

Ниже мой кипарис. json reporter опция config.

"reporter": "cypress-junit",
        "reporterOptions": {
          "testCaseSwitchClassnameAndName": true,
          "rootSuiteTitle":"MYPROJECT-UI",
          "testsuitesTitle": "MYPROJECT-UI-TEST",
          "suiteTitleSeparatedBy": ".",
          "useFullSuiteTitle":true,

          "mochaFile": "cypress/reports/myproject-ui-report[hash].xml",

          "toConsole": false,
          "outputs": true,
          "jenkinsMode":true

          ```
XML File generated post execution of Test Suite:


<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="MYPROJECT-UI-TEST" time="25.085" tests="2" failures="0">
  <testsuite name="" timestamp="2020-04-28T14:12:06" tests="0" file="cypress\integration\001_Login_spec.js" failures="0" time="0">
  </testsuite>
  <testsuite name="MYPROJECT-UI.Verify SKLM Login functionlity" timestamp="2020-04-28T14:12:06" tests="2" failures="0" time="25.085">
    <testcase name="Invalid username and password" time="3.707" classname="Login Test">
    </testcase>
    <testcase name="Valid username and password" time="21.378" classname="Login Test">
    </testcase>
  </testsuite>
</testsuites>


Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...