Skip to content
Sharp

Testing · interview question

Why does the 'testCompile' dependency configuration in a Gradle build file matter in this design?

Multiple choiceEasychapter-10-curatedpremiumtestingmocking-with-mockito
Choose one answer
Answer and explanation

Correct answer

B. To include libraries necessary for compiling test code

Why

The 'testCompile' configuration in Gradle specifies dependencies that are needed to compile the test source code. It ensures that necessary libraries are available during the test compilation phase.

Test yourself on Testing

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

Start free test
All Testing questions →