soundscape-community / soundscape-web-client

Intelligent navigation on any platform
MIT License
2 stars 2 forks source link

Automated testing #6

Closed steinbro closed 2 months ago

steinbro commented 8 months ago

Some ideas:

  1. Unit tests for basic mathematical calculations (e.g set of map tiles for a radius around a coordinate, inferred compass heading from a stream of points)
  2. Regression tests for callouts (e.g. compare a transcript of announced features for a GPX recording to some expected transcript)

Determine a JS testing framework to use for these.

steinbro commented 4 months ago

We now have mocha/chai tests run on every commit thanks to #14. But I'm leaving this open since there's still lots more to test.

steinbro commented 2 months ago

I added some end-to-end tests with Cypress, which are also run in our GitHub Actions. It exercises loading the page, rendering the map, fetching a tile and speaking the first callout. This should go a long way in catching any major breakage in the interactive components.