freeCodeCamp / pantry-for-good

An open source food bank logistics and inventory management tool
Other
395 stars 189 forks source link

Functional end to end tests #322

Open wildaces215 opened 6 years ago

wildaces215 commented 6 years ago

I am interested in helping with this project what are some tests that are good to start with?

jspaine commented 6 years ago

Hi, I think the server's pretty well tested, but also the easiest to start with, so if you can find something that's not covered yet that could be good.

React component test with enzyme can be a bit trickier and there are a lot missing. Some functional/end-to-end tests could be nice too, but that's not even set up yet.

wildaces215 commented 6 years ago

So I'll focus on functional end to end then!

jspaine commented 6 years ago

The client tests are next to the files they test, but yeah the end to end tests could have their own folder in the root of the project.

Have you thought about what to use for running the tests?

wildaces215 commented 6 years ago

In terms of a framework?

wildaces215 commented 6 years ago

I by accident closed the issue sorry about that but I'm thinking of using codeceptjs

jspaine commented 6 years ago

Sounds good.

wildaces215 commented 6 years ago

For writing functional end-to-end testing I decided to go with cypress js. I will submit a pull request to add the files needed for testing. The reason why I am going with cypressjs is because the setup process is a lot faster then other frameworks such as nightwatchjs or codeceptjs. I will also write a CONTRIBUE.md for testing if y'all don't mind. @jspaine @kenjiO