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

Testing #54

Open
davidhao3300 opened this issue Mar 27, 2015 · 4 comments
Open

Testing #54

davidhao3300 opened this issue Mar 27, 2015 · 4 comments

Comments

@davidhao3300
Copy link
Contributor

If we could set up tests, we can set up Travis to run some automated tests for us to catch any bugs before merging into master.

@natebrennand
Copy link
Contributor

👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍

if you promise to write tests I would do the setup for you

@alanhdu
Copy link

alanhdu commented Apr 3, 2015

Hm...I'm not sure how to structure our tests.

Ideally, the Flask-side should be a pretty transparent API for querying our database. Results really depend on what's in the database. Not sure how useful tests are for something like this.

I think testing is most needed for the front-end react, but I'm not sure how to write tests for that. Any ideas?

@natebrennand
Copy link
Contributor

A common strategy that I use with Ci is keeping a database dump so that tests can be run against data.
That way the results of API calls are consistent. We're doing some testing in this manner on Density.


I don't have a ton of experience with frontend testing but I think looking through this would be a good start: https://facebook.github.io/react/docs/test-utils.html
Facebook definitely built reacting with testability in mind.

@alanhdu alanhdu self-assigned this Apr 10, 2015
@alanhdu
Copy link

alanhdu commented Apr 10, 2015

Alright. I'll start working on this.

@sunyang713 sunyang713 changed the title Testing Testing (lol) Dec 18, 2015
@alanhdu alanhdu changed the title Testing (lol) Testing Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants