Testing

Note

We are using the Jasmine test suite and the Karma test runner for behaviour driven tests.

General

All tests are located within /tests. Each pull request gets validated through Travis by running those tests using gulp tests. You can also run this command on your local computer considering you followed the Installation instructions.

Structure

Name the files according to the General guidelines and consider the JavaScript additions for proper prefixing, for example:

test.header.js
test.footer.js
test.content.typography.js
test.content.wysiwyg.js
...

Coverage

The success of your project does not depend on the tests or the percentage of your code coverage. Yet it will improve maintanance and further development for you and other contributors. We should “Aim for the highest” possible test coverage.