Jest JSON results¶
You can generate Jest JSON results by setting your Jest output to JSON. Read more about exporting Jest results into JSON here
Check out our example Jest JSON test suite for a more detailed example.
Jest JSON format¶
Download our example file here: example_jest_report.json
Majority of top-level data is ignored as Calliope.pro will generate this automatically based on the report results.
testResultswe iterate over testResults and define each object as a container
A test result will be read as a container with one or more assertion result(s). Test results will also be categorised by our "smart" feature that groups containers together based on the name attribute. This can be disabled by adding the
smart=false parameter to your request.
assertionResultswe iterate over the array and define each object within as a result.
endTimeis used with startTime to calculate an average duration time of the test result.
messagestored as description.
namestored as title and, as described above, used to categorize the containers "smart".
startTimeis used with endTime to calculate an average duration time of the test result.
statusinherited from Test status
An assertion result will be rewritten as result.
ancestorTitlesif present, stored as title with title attribute.
failureMessagesstored as exception_description.
fullNameif ancestorTitles is not present, stored as title.
statusstored as status
titleif ancestorTitles is present, stored as title with ancestorTitles attribute.