Clean up test output
For example silence all the stack traces (from the faul-tolerance testing).
Make it easy to parse mentally.
Make it easy to parse mentally.
Leave a comment
on 2011-06-19 09:23 *
By Derek Williams
Assigned to set to Derek Williams
Status changed from New to Accepted
TestEventListener has been added to akka-testkit. Example usage can be seen here:
https://github.com/jboner/akka/blob/02aeec6b575b0c4c9a1004026df44fd5208ef1d4/akka-actor-tests/src/test/scala/akka/dispatch/FutureSpec.scala#L201
The only thing left is going through all the tests and filtering expected exceptions.
One thing I am unsure about is the best way to override the default EventListener. Currently I have made an './config/akka.test.conf' file that does the override, then in the project build file I set the system property 'akka.mode' to 'test'. This seems to work well and doesn't interfere with the 'akka.conf' correctness checks, but it would be better if there is a way of only setting this during testing.
https://github.com/jboner/akka/blob/02aeec6b575b0c4c9a1004026df44fd5208ef1d4/akka-actor-tests/src/test/scala/akka/dispatch/FutureSpec.scala#L201
The only thing left is going through all the tests and filtering expected exceptions.
One thing I am unsure about is the best way to override the default EventListener. Currently I have made an './config/akka.test.conf' file that does the override, then in the project build file I set the system property 'akka.mode' to 'test'. This seems to work well and doesn't interfere with the 'akka.conf' correctness checks, but it would be better if there is a way of only setting this during testing.
Updating tickets (#818, #821, #823, #836, #842, #854, #856, #865, #866, #867, #868, #869, #871, #872, #873, #877, #878, #879, #885, #888, #889, #890, #894, #910, #911, #917, #923, #924, #925, #926, #927, #928, #930, #931, #932, #933, #934, #936, #937, #952, #955, #957, #958, #959, #960, #961, #964, #965, #966)