https://kotlinlang.org logo
#spek
Title
v

v79

04/20/2018, 5:59 PM
This might be a daft question, but how do I run Spek tests from the gradle command line?
gradlew clean test
reports
5 actionable tasks: 5 executed
(there are 5 test files) but there's no console logging, even when tests fail. The tests run in IntelliJ as expected.
f

fred.deschenes

04/20/2018, 6:13 PM
this just means that gradle ran 5 tasks, not that it found 5 tests
Have you checked that you added the required stuff in your build.gradle? http://spekframework.org/docs/latest/#_gradle
v

v79

04/20/2018, 6:32 PM
Ah, thank you. I knew it was a daft question. Now to find out why it failed... 🙂
r

radityagumay

04/21/2018, 2:38 AM
@liamd is your question has been solved?
v

v79

04/21/2018, 6:50 AM
Yes, Fred's link showed me what I was missing from build.gradle.
r

radityagumay

04/21/2018, 6:51 AM
@liamd great, i also pr for latest android studio and depedencies here https://github.com/spekframework/spek-android-example/pull/3
2 Views