1. 7
  1.  

  2. 1

    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”?

    1. 1

      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