Mocha: Feature: beforeAll() and afterAll()

Created on 25 Nov 2011  路  2Comments  路  Source: mochajs/mocha

Sometimes I want to set up a database with dummy data all tests can query.

The problem is if I set up this in a beforeEach/afterEach it will create and destroy the database with the same dummy data for each test which is unnecessary since the data is just queried.

A really hot feature many want: https://github.com/pivotal/jasmine/pull/56#issuecomment-2823327

Most helpful comment

I'm blind.

All 2 comments

we have this already, in the bdd interface it's before() / after()

I'm blind.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luoxi001713 picture luoxi001713  路  3Comments

Swivelgames picture Swivelgames  路  3Comments

helloravi picture helloravi  路  3Comments

smithamax picture smithamax  路  4Comments

niftylettuce picture niftylettuce  路  3Comments