micronaut-guides / creating-your-first-micronaut-app-kotlin

8 stars 20 forks source link

Tests are not found #2

Closed littleiffel closed 6 years ago

littleiffel commented 6 years ago

When launchin

./gradlew test

this is the result

Test run finished after 323 ms
[         4 containers found      ]
[         0 containers skipped    ]
[         4 containers started    ]
[         0 containers aborted    ]
[         4 containers successful ]
[         0 containers failed     ]
[         0 tests found           ]
[         0 tests skipped         ]
[         0 tests started         ]
[         0 tests aborted         ]
[         0 tests successful      ]
[         0 tests failed          ]

Executed in folder complete.

sdelamo commented 6 years ago

I don't know if it is an Speck issue or an issue wiht the configuration I set. Nonetheless, tests are exectued. Try making a test fail and you will see that ./gradlew test runs them.

littleiffel commented 6 years ago

@sdelamo Yep confirm! failing works!

Thanks for tip ;)


Failures (1):
  Spek:example.micronaut.HelloControllerSpec:describe HelloController:on test /hello responds Hello World
    => org.junit.ComparisonFailure: expected:<Hello World[]> but was:<Hello World[i]>

Test run finished after 422 ms
[         4 containers found      ]
[         0 containers skipped    ]
[         4 containers started    ]
[         0 containers aborted    ]
[         3 containers successful ]
[         1 containers failed     ]
[         0 tests found           ]
[         0 tests skipped         ]
[         0 tests started         ]
[         0 tests aborted         ]
[         0 tests successful      ]
[         0 tests failed          ]