Fail build on canceled tests?

8 views
Skip to first unread message

Oliver Stewart

unread,
May 9, 2016, 1:12:04 PM5/9/16
to scalatest-users
Hi,
It seems that canceled tests don't fail the build with sbt, which is surprising (I just discovered that none of our end-to-end tests have been running on the build server, because the output was green and I never scrutinized the output beyond the "All tests passed" in green to see  "canceled 5".

In this case, I'm using Play's OneBrowserPerSuite trait, which cancels the tests when it can't initialize ChromeDriver.

Is there a way to configure the integration with sbt and/or the test runner to fail the build unless all tests pass and are run successfully? I haven't been able to find much detail on the semantics of "cancel" in the documentation.

Thanks,
Oliver
Reply all
Reply to author
Forward
0 new messages