Struct Settings
A structure representing the trial file
struct Settings;
Fields
| Name | Type | Description |
|---|---|---|
artifactsLocation
|
string | Where to generate artifacts |
dangerTestDuration
|
uint | Show the duration with red if it takes more dangerTestDuration msecs
|
executor
|
string | The default executor is SingleRunner. If you want to use the
ParallelExecutor set this option to parallel or if you want
to use the ProcessExecutor set it to process.
|
glyphs
|
GlyphSettings | |
maxThreads
|
uint | The number of threads tha you want to use
0 means the number of cores that your processor has
|
reporters
|
string[] | The reporter list that will be added by the runner at startup
You can use here only the embeded reporters.
If you want to use a custom reporter you can use static this constructor
|
warningTestDuration
|
uint | Show the duration with yellow if it takes more warningTestDuration msecs
|
Example
Settings has the spec, result, stats, html, allure and xunit reporters by default
Settings() .reporters .should .equal(["spec", "result", "stats", "html", "allure", "xunit"]);