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
At the moment it is very difficult to run an individual test using gradle. One way is to provide a test filter via --tests '*FoobarTest*'. However, one needs to invoke the right testing task since one cannot run build with this flag. I think this is an artifact of having a few non-standard testing tasks registered.
When running a single testing task, then it seems that we always run all test tasks as well (I suspect that this is caused by the TestReport task).
What is also very hard is to run a test/testing task (other than the test task) repeatedly. What gradle does is to not run the task if it is up to date. For the test task, there is a cleanTest task which deletes the build/test-results/test directory. I suspect that this one is used to check whether the task is up to date or not. For our custom test tasks, we don't have such a clean task and therefore one always needs to clean in order to re-run the tests. An alternative could be to provide the --rerun flag.
The text was updated successfully, but these errors were encountered:
At the moment it is very difficult to run an individual test using
gradle
. One way is to provide a test filter via--tests '*FoobarTest*'
. However, one needs to invoke the right testing task since one cannot runbuild
with this flag. I think this is an artifact of having a few non-standard testing tasks registered.When running a single testing task, then it seems that we always run all
test
tasks as well (I suspect that this is caused by theTestReport
task).What is also very hard is to run a test/testing task (other than the
test
task) repeatedly. What gradle does is to not run the task if it is up to date. For thetest
task, there is acleanTest
task which deletes thebuild/test-results/test
directory. I suspect that this one is used to check whether the task is up to date or not. For our custom test tasks, we don't have such a clean task and therefore one always needs to clean in order to re-run the tests. An alternative could be to provide the--rerun
flag.The text was updated successfully, but these errors were encountered: