Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

...

My Test stage shows 0% Coverage.

Solution

Functional and Automated Tests

  • In the Cockpit > Build Monitor, Is there an Agent from the App Server reported for the Test Stage

    • Is the application server properly configured with a Sealights' Coverage Collector agent ? A Test Listener entry with Lab ID should be visible along with the agent coverage indicator (green indicates coverage was reported to Sealights)

    • Is the right Lab ID set?

      • Image Removed
    • Is the right BSID provided ? Check in the Build monitor JSON entry if the Test Listener BSID is the expected one

    • Image Removed
    • If the application server configured with a Sealights Coverage Collector agent is still running then an agent entry should be visible in the Cockpit > Agents Monitor screen as below, with coverage indicator

    • Image Removed

    • Are the tests properly executed against the right instance of Application Server with SL instrumentation?

    • Please provide the logs at INFO level to Sealights via a Ticket opened to Support

Unit Tests

  • Java

    • In the Cockpit > Build Monitor, check the general build scan information to ensure the expected data was reported to Sealights e.g. expected number of modules and methods, check that the packagesIncluded and packagesexcluded strings are correct.

...

If using Sealights Maven plugin with surefire for Unit Tests, check in the Cockpit > Build Monitor in the Test Listeners tab that there are Test Listener(s) agents showing with the “surefire” tag and that they have reported coverage to Sealights (green indicator) as shown below.

...

  • slnodejs

...

You need to ensure the right configuration is in place per the type of testing e.g.