Struct Settings

A structure representing the trial.json file

struct Settings;

Fields

NameTypeDescription
artifactsLocation stringWhere to generate artifacts
dangerTestDuration uintShow the duration with red if it takes more dangerTestDuration msecs
executor stringThe 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 uintThe 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 uintShow 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"]);