Allure Jasmine configuration
The Allure Jasmine adapter behavior can be affected by some configuration options set in your project's setup.js
or setup.ts
file (see Prepare your project).
The configuration options must be defined in the object passed to the JasmineAllureReporter
constructor. Also, some additional data may be passed to the allure
object's methods.
resultsDir
Path to the directory where Allure Jasmine will save the test results, see How it works. If the directory does not exist, it will be created. Defaults to allure-results
.
testMapper
A function for custom post-processing test results. For example, it can alter a title or a list of attachments based on your custom logic. The function should both accept and return a TestResult
object.
allure.writeEnvironmentInfo()
Set data for the Environment information block in the test report.
allure.writeCategoriesDefinitions()
Define custom categories that will be used to distinguish test results, see Details panel.
This setting is an array, each item being an object representing one custom category. The objects may have the following properties:
name
— the category name.messageRegex
— regular expression that the test result's message should match.traceRegex
— regular expression that the test result's trace should match.matchedStatuses
— array of statuses that the test result should be one of.flaky
— whether the test result should be flaky or not flaky.