Skip to content
Sharp

Build Tools · interview question

In Gradle, which command would you use to run tests and build the project in one go?

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

Correct answer

B. Gradle build

Why

The 'gradle build' command executes the complete build lifecycle, including compiling, testing, and creating the build artifacts. This ensures that the project is fully built and tested.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →