fschwiet / DreamNJasmine

A DSL for writing tests as Given/When/Then specifications, inspired by Jasmine.
MIT License
40 stars 6 forks source link

chained beforeAll()s fail #8

Closed fschwiet closed 13 years ago

fschwiet commented 13 years ago

this should work:

        var store = beforeAll(() =>
        {
            return new EmbeddableDocumentStore()
            {
                RunInMemory = true
            };   
        });

        var process = beforeAll(() =>
        {
            store.Initialize();
            ...
        });
fschwiet commented 13 years ago

This failed, store was null in the second beforeAll block.

fschwiet commented 13 years ago

PerFixtureSetupContext

visitor states:

"Forward" "current spec position leads to the requested test"

"Retreat" "current spec position does not lead to the requested test"

outer thread calling spec will restart spec whenever it finishes, until told to shut down

external callers needing to cleanup/stop the thread will set a null requested test, then wait on the thread to finish.

fschwiet commented 13 years ago
fschwiet commented 13 years ago

fixed