You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to start a proper testing regime - might not set up tests for everything immediately, but at least anytime there is a bug I want to make sure I can set up a test which fails before the bug is fixed and doesn't when I have fixed it
Try cypress and see if it can replace puppeteer and/or jest (possibly jest for server side?)
Set up Jest testing environment
Set up Puppeteer testing environment
Figure out how to mock Ajax requests (is it in Jest or will I need Sinon?)
Figure out how to mock HTTP so I can test server.js
Figure out how to structure tests so I can have a test database initialised by database.sql
Write some initial tests for server.js - particularly Initial Database Setup
Write a test for /api/pin in server.js
Write test that checks api token for all "logged in" requests
Write a test that checks cid is checked for in Admin and User Apis
Write at least one client side test
The text was updated successfully, but these errors were encountered:
IF I use jest there are three separate test scenarios that require different approaches.
Server module testing - jest on its own
Client module testing - jest and jest-electron (An app written in electron for testing)
3 End to end testing - jest and puppeteer.
Note there is a jest-puppeteer but it takes over jest and I am thinking I only needed it for one third of my potential testing regime, so is it appropriate?
I have also been looking at Cypress, which is able to do client and end to end testing on one package and has lots of nice features to see how tests fail. I think this is actually my first job
IF I do this server tests can use existing mocha, chai, (sinon?) setup
I want to start a proper testing regime - might not set up tests for everything immediately, but at least anytime there is a bug I want to make sure I can set up a test which fails before the bug is fixed and doesn't when I have fixed it
server.js
database.sql
server.js
- particularly Initial Database Setupserver.js
The text was updated successfully, but these errors were encountered: