cozmo / jsQR

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
https://cozmo.github.io/jsQR/
Apache License 2.0
3.68k stars 606 forks source link

Refactor tests #65

Closed cozmo closed 6 years ago

cozmo commented 6 years ago

Currently we heavily rely on the end to end tests, but we also use them to test the individual steps in the pipeline. This causes some duplication and also makes it hard to do stuff like try to invert QR codes (since that doesn't live in an individual pipeline step but rather surrounds them all).

This adds some hand crafted test cases to each method in the pipeline, and then refactors how we calculate the end to end tests to be more purely integration tests (instead of a combination).