Closed mrcjkb closed 1 year ago
Running only the "Returns the first element of a list"
branch seems to work if I separate branches with a .
cabal test --test-option "--match" --test-option "Prelude.head.Returns the first element of a list"
@mrcjkb There's currently no "or" for the matches but that'd be welcome!
Do you prefer the hspec approach: --match "path.to.test.a" --match "path.to.test.b"
or the tasty approach, where the filter is an awk expression?
My personal opinion:
&&
and ||
yet )@mrcjkb Multiple matches sounds simpler to me indeed. I also don't want to depend on awk tbh. What do you think?
tasty
's parser doesn't depend on awk.
But I agree. I think I prefer the simpler solution. It can always be extended if the need comes up one day.
Given the following test tree:
With hspec, I can call
...to filter by both the
"Prelude.head"
and"Prelude.tail"
paths in one test run.And I can call
...to run only the
"Returns the first element of a list"
branch (in case there are additional branches under"Prelude.head"
).Is this possible with sydtest?