Many of my tests depend on the database. I use the following to check the connection before running the test case:
Assume (database.isa available, "database is down")
When I add it, in the case of each exam, right !!! Continuous!
is displayed in the output with the correct message.
When I add it to before each
method:
override def beforeEach () = {assume (database.is available, "Database is down")}
All I can see is just the class name
and * while trying to run a suit while facing an exception ** ABORTED ***
(on the line with the value
call).
Do I really need to add this assumption to each test case?
Apparently it has some purpose
Other options on that page are probably a << code> fixer
No comments:
Post a Comment