In this section, we'll briefly cover the various configuration options that can be used to control how tests are executed and which tests are executed.
Tags, conditions, and config
Config
Each test case makes a config function available, which can be used to set specific configurations for that test, such as threading, tags, and whether the test is enabled. For example, we can change the number of times a test is executed:
class ConfigExample : ShouldSpec(), Eventually { init { should("run multiple times").config(invocations = 5) {
// test logic
}
}
}
We set the number of invocations to 5. This is the number of times the same test will be executed each time the unit...