Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide and migrate to new test framework #15

Open
makinde opened this issue May 19, 2018 · 1 comment
Open

Decide and migrate to new test framework #15

makinde opened this issue May 19, 2018 · 1 comment
Milestone

Comments

@makinde
Copy link
Contributor

makinde commented May 19, 2018

This doesn't have to be high-pri, but we should think about this at some point. nodeunit is now deprecated.

tape seems like the closest alternative that would be a pretty easy switch, though it doesn't have the setUp and tearDown methods we use currently. We could simply have a setUp function that every test calls.

The other similar framework is ava. That has the setUp/tearDown stuff (along with lots of other great stuff), but doesn't have grouping. We'd also need to tell it to run our tests serially since all our tests share the same db connection.

@chrismatix chrismatix added this to the v2.0.0 milestone May 19, 2018
@brysgo
Copy link
Contributor

brysgo commented May 20, 2018

Jest has an option to run in band :-)

https://facebook.github.io/jest/docs/en/cli.html#runinband

Has bdd "grouping" and "beforeAll", "beforeEach", "afterAll", and "afterEach"

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

No branches or pull requests

3 participants