Closed Bug 1081412 Opened 10 years ago Closed 10 years ago

[tracker] add tests for fjord_utils.js functions

Categories

(Input Graveyard :: Code Quality, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2014Q4

People

(Reporter: willkg, Unassigned)

References

Details

This tracker groups a bunch of bugs for adding tests for fjord_utils.js functions. This file is in:

    fjord/base/static/js/fjord_utils.js

JavaScript tests for that JavaScript file exist in:

    fjord/base/static/tests/test_fjord_utils.js

There's one test there that you can be inspired from and one test that is commented out because it's busted.

The test harness is qunit:

    http://qunitjs.com/

Running the qunit tests is different than running the rest of the unit tests (or the smoke tests). First, it's not documented anywhere (I should fix that). Second, you run the Fjord server (e.g. "./manage.py runserver ...") and then go to: /static/tests/index.html

For example, you can run them in production here:

    https://input.mozilla.org/static/tests/index.html
Depends on: 1081413
All of these bugs have been completed, so I'm going to mark this FIXED.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014Q4
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.