comphist / cora

A web-based, token-level annotation tool for non-standard language data
http://www.linguistics.rub.de/comphist/resources/cora/
MIT License
10 stars 6 forks source link

Unit tests for JavaScript #37

Open mbollmann opened 9 years ago

mbollmann commented 9 years ago

Originally reported by: Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann)


Currently there are zero unit tests for the JavaScript components of the code, which is ... not good.

First priority is setting up some unit test framework and integrating it into the CMake build process. Most likely candidate is QUnit, since it supports unit tests involving the DOM, which most other frameworks do not. Performing unit tests automatically, instead of going through a web browser each time, will probably require node.js components in some way.

Possible alternatives:

Actually creating some unit tests will likely be a longer and more involved process, but it won't get done without laying the foundation first.


mbollmann commented 9 years ago

Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):


We could also include sth. like JSLint in CMake's lint target.

mbollmann commented 7 years ago

Basic support for JS unit testing has been introduced in #92. Tests of course still need to be actually written...