Mochawesome JSON format¶
Download our example file here: example_mochawesome_report.json
Defaults¶
smart
:true
(No extra functionality)merge_containers
:true
(ifsmart
is true)
Report¶
stats
Added as a result withjson_data
to a Configurations & properties container.results
We iterate through each element and define them as suite objects, which are processed as containers.meta
Just likestats
it will be added as result to the Configurations & properties container.
Suite¶
A suite will be read as a container, this suite can contain suites and also tests.
Elements¶
title
Defines the title of the container.suites
Iterates through the suites and creates containers of them.tests
Tests contain the results of a suite, when iterated through each result is processed and stored in the report.beforeHooks
Contains test results which are processed.afterHooks
Contains test results which are processed.
Test¶
Steps are rewritten as results
title
: Used as title for the results when there is nofullTitle
fullTitle
: Used as title for the result.timedOut
: ignoredduration
: Used to set the estimated duration of the result.state
: ignoredspeed
: ignoredpass
: Used to define the status of a result.fail
: Used to define the status of a result.skipped
: Used to define the status of a result.pending
: Used to define the status of a result.context
: ignoredcode
: ignorederr
: Used to set the exception message, stacktrace and json_data of a result.uuid
: ignoredparentUUID
: ignoredisHook
: ignored