Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.

"feature" request: restart server for each test #5

Open
@jamesarosen

Description

Currently, this library starts the server before the suite run and stops it after.

That leads to the situation where server.responses and server.requests have shared state from test to test. That, in turn, makes it harder to make assertions about requests and responses and makes it easy to accidentally have one test step on another by defining a fake response.

What do you think of changing the above lines to the following?

QUnit.testStart(startServer);
QUnit.testDone(stopServer);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions