Execution failed for task ‘:test’

Symptom

Execution failed for task ':test'.
> There were failing tests.

Cause

You run test with gradle but test task was not configured.

Solution

Configure gradle test task,
or use IntelliJ IDEA to build and run. See Enable right-click test running

Link