Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69407

no failing test counter on navigation point

XMLWordPrintable

    • 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

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

              Created:
              Updated: