You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a large project but only want to run a subset of the test suites how would I go about that with a project?
I can't imagine running flags through hundreds of packages to achieve this. It looks like the finest granularity in a project is the package and not a component.
What I can do now:
tests: False
package pkg-a {tests: True}
What I'd like is something like any one of the following:
You are correct in that cabal-install cannot enable/disable tests at the component level but only at the package level; this is a limitation of the solver (see #4087 but there are many issues around this).
I am not sure I understand the issue you are facing, but you can use the target syntax to specify with test to run. I.e. you can do cabal test pkg-a:test:test-1. Tests will have to be enabled though.
What do you wish to achieve by enabling a test component a the time?
I assume pkg-a is a project local package? I am not sure we can run tests for non-local packages.
Yes these were all local packages, about 400 of them. I wanted to have a way of running a subset of them using a project but ended up creating a script that calls each test individually using the target syntax you provided @andreabedini.
If I have a large project but only want to run a subset of the test suites how would I go about that with a project?
I can't imagine running flags through hundreds of packages to achieve this. It looks like the finest granularity in a project is the package and not a component.
What I can do now:
What I'd like is something like any one of the following:
What I'm doing at the moment (stopping to edit
test-suites.txt
):The text was updated successfully, but these errors were encountered: