is there a way to turn off ... whatever it's calle...
# community-support
c
is there a way to turn off ... whatever it's called ... when gradle thinks something doesn't need to be run because nothing has changed since the last run? I want gradle to run my tests regardless of that because I need their logs 😛
t
Can use --rerun-tasks. It'll rerun all dependent tasks too though.
👍 1
t
https://blog.gradle.org/stop-rerunning-tests Wrt logs, you can probably redirect them to files, but aren't they captured into the test reports?
1
Also
./gradlew cleanTest test --no-build-cache
should work
c
@Thomas Keller I don't generally need to enable spring boot's debug, so when I needed to and went to rerun it decided it didn't need to 😉
could output logs to files all day but that doesn't mean I want trace, etc, level logging written to the files all the time.
r
Both
--rerun-tasks
and
clean --no-build-cache
will rerun everything, so you will need to wait for all the previous tasks your tests depends on. If you are interested in rerunning just a specific task, the tests here, and would like to leverage the cached prework, you should use simply
--rerun
which will only reexecute the requested task 🙂
👍 1
☝️ 2
v
Or configure the task to be untracked (and maybe uncached) if you always and every time want to rerun it.