dssg / tyra

Prediction model evaluation
Other
4 stars 1 forks source link

Implement front-end testing #109

Open thcrock opened 6 years ago

thcrock commented 6 years ago

We have wanted to do front-end testing for a while, and there are some updates:

We have successfully used jest for React testing successfully in another repo, including the pattern of sharing example API JSON between the frontend and backend. It's a little bit different because the other repo uses Redux, and primarily what we are testing are the actions. We could still reproduce something like that here without Redux, it just wouldn't look quite the same way (or we could start using Redux).

We have also successfully used selenium and nightwatch for acceptance/click testing, that would be pretty useful to include here.