Ben Woodworth
10/11/2023, 1:01 PMBen Woodworth
10/11/2023, 1:18 PMBen Woodworth
10/11/2023, 1:18 PMBen Woodworth
11/06/2023, 9:51 PMCLOVIS
11/06/2023, 11:09 PMCLOVIS
11/08/2023, 10:04 AMparametrize {
val letter by parameter(…)
// …executes X times…
}
However, many test frameworks require to be able to discover all tests before executing them.
For Prepared, I would require a way to declare all parameters that can be executed once before executing any test, only to register the possible cases.
suite("My test suite") {
parametrize {
val letter by parameter(…)
test("Some dummy test for $letter") {
letter.uppercase() shouldNotBe letter
}
}
}
Do you think it is possible to get this behavior with your library? Maybe by using a different parametrize
function but the same parameter
functions?
Additionally, my library has an additional concept to allow declaring suspend test fixtures without evaluating them: prepared values. Ideally, I'd like parametrized values to be compatible with this pattern as well. What do you think?CLOVIS
11/09/2023, 1:40 PM