Unit tests use karma + Mocha (in TDD mode) + and Firefox Nightly.
- Write tests that are resistant to flux in the codebase. Things move quickly.
- When testing with an
<a-entity>, we often to have wait until it fires the 'loaded' event. - karma may misreport test failures to other unit tests. Run one test suite at a time to isolate the test failure.
- Use
process.nextTickafter doing DOM manipulations. May have to usesetTimeoutwhen doingremoveAttribute. - Use
suite.onlyortest.onlyto isolate test cases.