[QTest] Support for test case data in CheckAllTestCases
and RunAllTestCases
#2026
Labels
enhancement
New feature or request
library
related to Q# library code rather than the compiler implementation or language design
Is your feature request related to a problem? Please describe.
Currently
CheckAllTestCases
andRunAllTestCases
function take a tuple of the form:(name : String, test_case : () -> 'T, expected : 'T)
. So, Iif someone wants to test a function for multiple inputs/outputs it leads to code duplication.Describe the solution you'd like
Allow
CheckAllTestCases
andRunAllTestCases
function by having input array and expected output array for a function. This is motivated by pytest.mark.parameterize that allows listing inputs and expected outputsDescribe alternatives you've considered
Have duplicate entries in testcases array in
CheckAllTestCases
andRunAllTestCases
function.Additional context
See #2013 (comment)
The text was updated successfully, but these errors were encountered: