webtech-uos / nodejs-lrs

node.js implementation of a learning record store (LRS) as described in the XAPI specifications
MIT License
9 stars 7 forks source link

Umstrukturierung functional-Tests #24

Closed tthelen closed 10 years ago

tthelen commented 10 years ago

Eine Klasse für jede TestSuite, weil der gleiche definierte Zustand für jeden Test innerhalb einer Suite gewünscht ist.

TiloW commented 10 years ago

Hier mal eine Klarstellung, die mich überrascht hat:

Async tests are to test async behaviour, but the different test cases don't run concurrently. The done() callback will need to be called to indicate the test is finished, before the next one (and its associated beforeEach) will be run.

Wir können beforeEach also doch problemlos einsetzen. Leider wird das in den mocha docs nicht deutlich.