3 ms·
Yup. The ability to compose fixtures too, a test can depend on a fixture but so can an other fixture. Combined with flexible scopes and the ability to mark and
by masklinn 9y ago
Yup. The ability to compose fixtures too, a test can depend on a fixture but so can an other fixture.
Combined with flexible scopes and the ability to mark and select/deselect tests based on name and marks it makes for genuinely great stuff e.g. some of your tests depend on the database, you can have a session-scoped fixture handling a connection, then a function-scoped one depending on it and getting a cursor, and if you don't select any test depending on the latter no connection will be created at any point.