Skip to content

Test Frameworks

Teamscale can process a range of test-related data sources. Some tests can directly be detected in the source code. Reports from test executions can be uploaded in various formats. With Testwise Coverage there is even a way to upload test coverage on a per-test granularity.

Test Implementations

If your test framework is supported the Tests page in the Metrics perspective shows the hierarchy of tests and their overall count.

Tests implemented with the following frameworks can be automatically detected from the source code:

Generic File-Based Test Implementations

If your test framework is not (yet) supported and its tests cannot be detected from the source code automatically, you can use include/exclude patterns to identify these files so they can be indexed to provide Test Suggestions.

Configure a list of Ant patterns in the "Generic test implementation patterns" analysis profile option. Every file whose path matches one of the patterns is defined as a single test implementation: the file path becomes the test's name and the whole file content becomes its implementation body.

To configure the import, add one pattern per test file type, for example:

**/*.robot
**/*.feature

Keep the following constraints in mind:

  • The option selects files, so the tests will be the content of the whole file. If your files contain multiple tests, they will be considered as one big test.
  • Matching files must be part of the analyzed code. Files excluded from the project or detected as binary never reach the analysis and cannot be imported.

The defined tests appear on the Tests page in the Metrics perspective like any other test implementation.

Test Execution Formats

If test execution reports are provided the Tests page in the Metrics perspective shows the hierarchy of tests, their durations, results and overall count.

The following test execution formats are currently supported by Teamscale:

Additional Frameworks & Formats

If your framework isn't supported yet, don't hesitate to contact us; we continuously add support for new formats.

Configuring Jest to Output A Supported Report

To get a test execution report from Jest that Teamscale can parse (JUnit format), you need to install the jest-junit plugin and then configure it to also emit file names in the report:

js
"jest-junit": {
  // ...
  "addFileAttribute": "true"
}