Interesting. Tests written in BDD frameworks like rspec and jasmine can have a similar structure, but in my experience it’s difficult to use them this way - possibly because of the inefficiencies of “destroy all possible state after each test”?
I wrote a ruby lib called test-garden[1] a few years ago that facilitates nested tests with shared setup/teardown. It uses the underrated ‘wrong’ assertion gem by @alexch.
Interesting. Tests written in BDD frameworks like rspec and jasmine can have a similar structure, but in my experience it’s difficult to use them this way - possibly because of the inefficiencies of “destroy all possible state after each test”?
I wrote a ruby lib called test-garden[1] a few years ago that facilitates nested tests with shared setup/teardown. It uses the underrated ‘wrong’ assertion gem by @alexch.
[1] https://github.com/vjoel/test-garden