-
Notifications
You must be signed in to change notification settings - Fork 189
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 Front End Tests #1145
Comments
I can give this one a shot, however I know next to nothing about testing (front end or otherwise) and my knowledge of react is pretty lacking. That being said I'm always interested in learning new technologies, and especially learning how telescope works under the hood (on the front end side at least.) |
@chrispinkney sure, I'll assign it to you. I'd also like to give this one a go since I've never done front-end testing. We can both work on it, just targeting different areas of the code (or we can collaborate). |
This is going to be a big piece of work spanning multiple PRs, should we create project for it? |
I think we can create a project for tests, not only for front-end testing. What do you think? |
Sounds great, we need to increase our test coverage for backend as well. |
Not sure if I have the time to participate in writing test code but this is definitely something I'll be following closely. :) |
@manekenpix sure I'd love to collaborate, either way I'll definitely need someone to bounce ideas off of haha. |
Resource for this issue: https://create-react-app.dev/docs/running-tests/#option-2-react-testing-library |
BTW @tonyvugithub also expressed interest in this issue |
Thanks @chrispinkney . Let's do it guy! |
@manekenpix @chrispinkney : Do we have a guide how we should approach this in term of dividing the workload? Also @manekenpix mentioned that we could look at testing option from Gastby docs |
I talked to @chrispinkney a bit and agreed that we should discuss about which components each person should be taking care of. |
The key to doing something like this is to split it up into lots of smaller PRs. I would suggest you have one "meta" bug with a checklist, and people can claim an individual file to write tests for. This would then happen in a PR-per-file, and the meta bug can keep track of what is and isn't done, and who has claimed what. At the top of this bug, you can do a Markdown checklist of all the parts to be tested and update it. |
@humphd :I agreed with all you mentioned. How do we create a "meta" bug? like we create an issue? |
This could be the metabug and we mention all the front end test issues here |
@c3ho : So I guess one of the maintainers will create the checklist here. And either myself, or Josue or Chris will pick a component, write tests on it then create PR separately from this "meta". This meta then keep track of what have been done and approved. Do I understand it correctly? |
Yeah I can update this with the files issues so they can all be mentioned. Feel free to file a issue for the component you’re creating the test for and just mention this specific issue |
Hi all, |
No to an external file. Let's do it in the issue please. |
@humphd yes, I understand that as you have mentioned above. I just provide the list so the owner of the issue can use it as a reference to write up the md file here. Also, to consult everyone's opinions if my categorization of components makes sense. I should have been clearer when sharing the file. My bad. |
Part of #1145: Added setup for frontend testing and Added test for Spinner component
What would you like to be added:
Add frontend tests, I think this should be broken up into multiple parts.
Why would you like this to be added:
We're using jest, created by facebook (creators of react) in the backend, let's leverage that for front-end testing as well
Components
The text was updated successfully, but these errors were encountered: