Skip to content
Sharp

Build Tools · interview question

How would you configure a Gradle build to skip tests during the build process?

Multiple choiceHardchapter-10-curatedpremiumbuild-toolsbuild-lifecycle
Choose one answer
Answer and explanation

Correct answer

D. Use the -x test flag

Why

The '-x test' flag in Gradle is used to exclude the test task during the build process. This allows the build to proceed without executing tests, which can be useful in certain scenarios.

Test yourself on Build Tools

A free test with instant, explained results. No account needed.

Start free test
All Build Tools questions →