-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add basic unit tests hooked into Travis CI #118
Comments
Hey @yochannah I would like to take this. I have very little experience with writing tests, but this seems the right opportunity to get started. |
@harshil1712 that sounds amazing! Do you know where you'd plan to start or would you like to chat first? |
It would be great if I could get some help. I have a few questions.
As I mentioned I am new with testing, and there might be a lot of questions coming from my end. 😅 |
@harshil1712 okay, here's a mega response - I'd suggest working through these in order. Just the basic use case alone would be amazing. testing library: how about jest? this will align with some other intermine-based tools. use-cases:basicThis won't require a testing library, probably just a travis yml file, possibly with a shell script as well. if the script completes = success, if it errors out partway = failure.
advanced - unit testscheck directly against the mongo DB that:
Even more advanced - UI-based testsideally using cypress. [TODO, ADD DETAILS AT SOME POINT] :) |
Hey @yochannah,
|
@harshil1712 if you know a way to do this with a testing library, go ahead! I was thinking something along the lines of a shell script - an example is here: https://github.com/intermine/bluegenes/blob/dev/.travis.yml#L30 |
@yochannah thank you for the link. It helped me understand the approach better.
This seems to work until the |
@yochannah I would like to work on this issue if it's still available. I haven't written any tests prior to this, so it will help me to learn more about writing tests. |
It would be nice to have some basic tests hooked into Travis to test the following things:
The reason I say this is I managed to merge a PR without testing one method, and then had to revert it when I realised that one method had broken :(
The text was updated successfully, but these errors were encountered: