LostRhapsody / slothtime

Minimalist time tracking website
https://slothtime.dev
GNU General Public License v3.0
0 stars 0 forks source link

Automated testing script #51

Open LostRhapsody opened 1 year ago

LostRhapsody commented 1 year ago

Create an automated testing script to be used in the Netlify pipeline, and preferably can be run outside of the pipeline to test on a local client.

At a base level, the script should enter multiple forms of data wherever data can be entered, open every single modal, click on every single link, and click every single button.

We're checking to see if any errors get thrown or if outputs from any functions are not what we expect. During a pipeline, this should simply fail the pipeline, and when run locally, it should output a list of the errors it found.

Ideally, this test wouldn't just hard stop when an error occurs. That way, it will obtain a list of all the errors that occurred for you from a single run. Otherwise, it would be, run once, one error, fix error, run again, there's another error.

To accomplish that, there might be a tool that has it built in, otherwise you'd have to have the test somehow keep going despite hitting a runtime exception, or some other error.

Lots of research into available tools and methods is required for this issue.