by chrisdevereux · 13y ago · 0 comments
Edit: Having thought about it for a second, this could easily be done in most languages (with some preprocessing to strip out for deployment. Super easy in C-based languages). Not a convention I see anyone follow, though.
###
@it should return true
expect(foo()).to.be.true
###
foo = -> true
and the preprocessor extracts the test from the comment and associates it with the foo declaration.