• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

      test pipeline

      def junit = '''<?xml version="1.0" encoding="UTF-8"?>
      <testsuites>
        <testsuite name="acceptance" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
          <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
          <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
            <error type="Codeception\\Exception\\MalformedLocatorException">Second test
      Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test
      
      /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
      /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
      </error>
          </testcase>
          <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
        </testsuite>
      </testsuites>
      '''
      
      node  {
          writeFile file: 'result.xml', text: junit
          
          xunit([
              PHPUnit(deleteOutputFiles: true,
                  failIfNotNew: true,
                  pattern: 'result.xml',
                  skipNoTestFiles: false,
                  stopProcessingIfError: true)
          ])
          currentBuild.result = 'UNSTABLE'
      }
      

      i am not 100% shure but i think here is the title part
      https://github.com/jenkinsci/blueocean-plugin/blob/868c0ea4354f19e8d509deacc94325f97151aec0/blueocean-core-js/src/js/components/ResultPageHeader.jsx#L31

          [JENKINS-69407] no failing test counter on navigation point

          Gordon Franke created issue -
          Gordon Franke made changes -
          Description Original: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          New: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance (mobile)" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Test FastPass for secInPrim unnumbered blocks (tests ET013-80908)" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Test CategoryBooking for secInPrim unnumbered blocks (tests ET013-80908)" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Facelift - resale secondary in primary for unnumbered blocks: Test CategoryBooking for secInPrim unnumbered blocks (tests ET013-80908)
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #p|1568|2630

          /home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Reset setUp environment for test in eventorg7 (tests ET013-80908)" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          Gordon Franke made changes -
          Description Original: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance (mobile)" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Test FastPass for secInPrim unnumbered blocks (tests ET013-80908)" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Test CategoryBooking for secInPrim unnumbered blocks (tests ET013-80908)" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Facelift - resale secondary in primary for unnumbered blocks: Test CategoryBooking for secInPrim unnumbered blocks (tests ET013-80908)
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #p|1568|2630

          /home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/ile_event-ticketing-php_PR-15508/tests/acceptance/mobile/06_wow_shop_facelift/15_resale/resale_secondary_in_primary_unnumbered.feature" name="Facelift - resale secondary in primary for unnumbered blocks: Reset setUp environment for test in eventorg7 (tests ET013-80908)" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          New: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance (mobile)" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Second test
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test

          /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          Gordon Franke made changes -
          Description Original: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance (mobile)" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Second test
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test

          /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          New: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Second test
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test

          /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          Gordon Franke made changes -
          Description Original: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Second test
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test

          /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}
          New: hello, we have notice that in the blue ocean menu the link Tests did not display the number of failing tests anymore ;(

          test pipeline
          {code}
          def junit = '''<?xml version="1.0" encoding="UTF-8"?>
          <testsuites>
            <testsuite name="acceptance" tests="78" assertions="744" errors="1" failures="0" skipped="0" time="2033.409132">
              <testcase file="/home/jenkins/agent/workspace/test/tests/my.feature" name="Simple Test" assertions="7" time="12.240726"/>
              <testcase file="/home/jenkins/agent/workspace/test/tests/second.feature" name="Second test" assertions="1" time="6.918383">
                <error type="Codeception\\Exception\\MalformedLocatorException">Second test
          Codeception\\Exception\\MalformedLocatorException: CSS or XPath locator is malformed: #test

          /home/jenkins/agent/workspace/test/tests/_support/_generated/AcceptanceTesterActions.php:2981
          /home/jenkins/agent/workspace/test/tests/_support/AcceptanceTester.php:832
          </error>
              </testcase>
              <testcase file="/home/jenkins/agent/workspace/test/tests/acceptance/third.feature" name="Another test" assertions="8" time="33.473463"/>
            </testsuite>
          </testsuites>
          '''

          node {
              writeFile file: 'result.xml', text: junit
              
              xunit([
                  PHPUnit(deleteOutputFiles: true,
                      failIfNotNew: true,
                      pattern: 'result.xml',
                      skipNoTestFiles: false,
                      stopProcessingIfError: true)
              ])
              currentBuild.result = 'UNSTABLE'
          }
          {code}

          i am not 100% shure but i think here is the title part
          https://github.com/jenkinsci/blueocean-plugin/blob/868c0ea4354f19e8d509deacc94325f97151aec0/blueocean-core-js/src/js/components/ResultPageHeader.jsx#L31

            Unassigned Unassigned
            gimler Gordon Franke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: