Open frksteenhoff opened 5 years ago
An example from testing the gaugeTitleCold(val)
function:
(last test case checks for values > 5, text has been updated)
Works has been moved to the heste_unittesting
branch
Because of the large number of changes to the code base during 2019, it has been hard to keep up with testing. The implemented tests fail because the logic have changed and because we are no longer relying on the knowledgebase as heavily as before.
It would be nice to automate some testing of the code, but we would need someone to dedicate time to it. I will not be able to do this before I leave.
Description of the testing frameworks and how to set up a test is added in the wiki Unit and UI testing of ClimApp
Initial idea https://medium.com/the-web-tub/testing-cordova-apps-with-appium-2b3b236e026b
[x] Set up test environment Solution working (using 'jest'): https://medium.com/welldone-software/an-overview-of-javascript-testing-in-2018-f68950900bc3
Code to test (functionality) Henriette will create the basic setup and test cases.
Code to test (UI)
Set up automated CI/CD flow
When this is working remember to always test before commit
npm run test