Hi all,

The Gradle build defines:

defineProperty("FORCE_TESTS", "false")
ext.IS_FORCE_TESTS = Boolean.parseBoolean(FORCE_TESTS);

However, it's never used. Meanwhile, the allprojects configuration for the
'test' task declares:

// Always run tests
outputs.upToDateWhen { false }

It's not clear why all tests need to be run every time. I suspect that the
line should be

outputs.upToDateWhen { IS_FORCE_TESTS }

This can save a lot of time during development iterations as there's no
reason to run unaffected tests.

Are there any insights into this?

- Nir

Reply via email to