gmail-processor
gmail-processor copied to clipboard
Add automated tests for GMail2GDrive
The features of GMail2GDrive should be automatically tested to improve code quality and reduce regressions.
Possible unit testing frameworks for Google Apps Script:
- https://github.com/google/clasp
- https://github.com/simula-innovation/qunit/tree/gas/gas, see also: http://www.tothenew.com/blog/how-to-test-google-apps-script-using-qunit/
- https://github.com/zixia/gast
The chosen approach is to use clasp for easier overall automation and client-side development as well es QUnit (with gas patch from simula-innovation) for unit tests that can be run from within Google Apps Script.
Since Google clasp enables to use of the existing JavaScript development toolchain with IDE support and many automation possibilities (testing, versioning, deployment, ...).