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

Unit tests against application itself #50

Closed
simonw opened this issue Nov 9, 2017 · 2 comments
Closed

Unit tests against application itself #50

simonw opened this issue Nov 9, 2017 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented Nov 9, 2017

Use Sanic’s testing mechanism. Test should create a temporary SQLite database file on disk by executing sql that is stored in the test themselves.

For the moment we can just test the JSON API more thoroughly and just sanity check that the HTML output doesn’t throw any errors.

@simonw
Copy link
Owner Author

simonw commented Nov 9, 2017

@simonw simonw added this to the Ship v1 milestone Nov 9, 2017
@simonw simonw added the medium label Nov 9, 2017
simonw pushed a commit that referenced this issue Nov 11, 2017
Refs #50

I had to disable the build metadata function to get these tests to work
sensibly. I need to completely rethink how that mechanism works.
simonw pushed a commit that referenced this issue Nov 11, 2017
I'm closing #50 - more tests will be added in the future, but the framework
is neatly in place for them now.
@simonw
Copy link
Owner Author

simonw commented Nov 11, 2017

I'm closing #50 - more tests will be added in the future, but the framework is neatly in place for them now.

@simonw simonw closed this as completed Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant