Getting started
To use Test Performance tracking, your organization must be on any paid Pro plan.
Most test frameworks offer to provide you with a log file which contains information about your test suites and their time, assertions, errors etc. We currently support the JUnit log format, supported by major framewors such as PhpUnit.
1. JUnit Log setup
It is assumed that you are using a test framework with JUnit log output support, such as PhpUnit, or Instanbul through an external dependency.
You will have to make sure that your test runner outputs the JUnit log file to the following path: build/logs/junit.xml
php vendor/bin/phpunit --log-junit build/logs/junit.xml
2. Done
The OtterWise uploader script automatically picks up on the file existence, and handles it from then onwards. You will now start seeing performance metrics in Pull Request comments, inside OtterWise PR view and overviews.