erikedin / Behavior.jl

Tool for Behavior Driven Development in Julia
Other
25 stars 3 forks source link

Determine what test macros to use #11

Closed erikedin closed 6 years ago

erikedin commented 6 years ago

Do I use an existing test framework or do I write my own test asserts? Can I rewrite the @given macro as a custom TestSet in Base.Test? Do I want to do that? In short, how do I propagate errors from the step definitions?

erikedin commented 6 years ago

I couldn't use @test, because it's heavily integrated into reporting and other stuff. I don't know of any test assert frameworks (because I haven't really looked). The @assert macro could work, but then you would hide asserts in peoples code, and report them as test failures instead, which would be bad.

I made my own macro @expect.