live_map-interface icon indicating copy to clipboard operation
live_map-interface copied to clipboard

Add tests

Open TGRHavoc opened this issue 3 years ago • 2 comments

At the moment there's no tests. I'm just opening up the webpage on a local server and clicking around.

It would be nice to have tests to test the various modules and the interaction they have with the DOM.

Jest has a VDOM that we can use for the DOM interaction testing.

TGRHavoc avatar May 23 '21 14:05 TGRHavoc

I think utilizing something like jest-fuzz would also be nice to see if random stuff breaks.

Would be nice to test more than just ASCII strings though

TGRHavoc avatar Jun 09 '21 21:06 TGRHavoc

Woop. This repo now uses Github actions to automate the testing and deployment (hopefully).

The current workflow is as follows:

  • Create a branch for a new feature/fix etc
  • Send a PR to develop branch
  • Tests will run
  • If the tests complete, merge into develop branch
  • When enough merges are done to develop, merge it into master
  • This merge should automatically bundle and deploy the code to github-release

Hopefully tests will make everything run a bit smoother in terms of releasing new features etc

TGRHavoc avatar Sep 07 '21 11:09 TGRHavoc