|
|
|
|
|
by O5vYtytb
1860 days ago
|
|
How do you represent the test ID for complex arguments? In Pytest, that's easily done with `pytest.param`: @pytest.parametrize("a,b", [
pytest.param(..., id="thing1"),
pytest.param(..., id="thing2"),
])
def test_foo(a, b):
...
|
|
Since multiple tests can share the same tag in Ward, if you wanted to narrow things down to ensure you're only selecting from the tests generated in this loop you could do something like `ward --search 'simple addition' --tags thing2`.
You can also select multiple instances at once with `ward --tags 'thing1 or thing3'`.