2 ms·
Testing support is basic and, when we started, there were no clear best practices - so we published how we organized our repo. The `@test foo` command basicall
by philip1209 11y ago
Testing support is basic and, when we started, there were no clear best practices - so we published how we organized our repo.
The `@test foo` command basically raises an exception if the result is false. You have to manually register all of the tests and call them individually. setUp and tearDown has to be done manually. The testing library keeps no data about how many tests were run - it just throws an exception if an `@test` encounters a false.
It works, but there is no sophistication.
- idunning 11y agoThis is partially fixed in Julia 0.5 (or available now as BaseTestNext.jl in Julia 0.4). Its basically a backwards-compatible rewrite of the former Base.Test that adds the notion of test sets - enabling counting tests by default, but also not immediately failing out on the first bad test and even logging.