More informative error message for an incorrect number of testcase/fixture function parameters
Closed this issue · 1 comments
fjarri commented
If a user makes a mistake and defines a testcase or a fixture function with an incorrect number of parameters, for instance
tc = testcase(fx1, fx2) do x, y, z
...
end
the resulting error message will be thrown when the testcase is executed, and it will be quite unclear. It is possible to check the number of parameters on testcase creation, but it may slow down initial test pickup.
fjarri commented
Rendered unnecessary by the new @testcase
macros, where you physically cannot have a different number of function parameters and the number of fixtures.