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

Unify testing code style #1091

Closed
9 tasks done
nventuro opened this issue Jul 18, 2018 · 6 comments
Closed
9 tasks done

Unify testing code style #1091

nventuro opened this issue Jul 18, 2018 · 6 comments
Assignees
Labels
tests Test suite and helpers.
Milestone

Comments

@nventuro
Copy link
Contributor

nventuro commented Jul 18, 2018

Some test suites are a bit all over the place, we should make them more consistent. Current items:

@nventuro nventuro added this to the v1.12.0 milestone Jul 18, 2018
@nventuro nventuro self-assigned this Jul 18, 2018
@nventuro nventuro mentioned this issue Jul 18, 2018
@frangio
Copy link
Contributor

frangio commented Jul 18, 2018

Also using this to store test state instead of global(ish) variables.

@nventuro
Copy link
Contributor Author

nventuro commented Jul 19, 2018

We should also remove chai-as-promised, since it doesn't work properly when combined with chai-bignumber, is not being maintained, and can be replaced by (await promise) anyway.

@frangio frangio added tests Test suite and helpers. feature New contracts, functions, or helpers. kind:improvement and removed feature New contracts, functions, or helpers. labels Jul 20, 2018
@shrugs shrugs modified the milestones: v1.12.0, v2.0 Aug 2, 2018
@frangio
Copy link
Contributor

frangio commented Aug 13, 2018

I added an item about arrow functions. There is a section in the Mocha website about them. I could find incorrect use of arrow functions in the tests for: Superuser, ECRecovery, RBAC, and SignatureBouncer.

@nventuro Not sure if we should also open an issue for this. Are you tracking each item separately also?

@nventuro
Copy link
Contributor Author

nventuro commented Aug 13, 2018

Tbh I'm not doing great work at handling this, I should've opened separate issues (and maybe a meta-issue?). Thanks for the bit about arrow functions!

@nventuro
Copy link
Contributor Author

This should be easier to track now.

@frangio frangio modified the milestones: v2.0, v2.1 Aug 27, 2018
@nventuro
Copy link
Contributor Author

nventuro commented Oct 4, 2018

This is now ready, thanks @jacobherrington, @justuswilhelm and @Aniket-Engg! 🎉

@nventuro nventuro closed this as completed Oct 4, 2018
@come-maiz come-maiz removed this from the v2.1 milestone Oct 21, 2018
@come-maiz come-maiz added this to the v2.0 milestone Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite and helpers.
Projects
None yet
Development

No branches or pull requests

4 participants