Closed Bug 1112117 Opened 10 years ago Closed 9 years ago

Ship-it: Introduce some js unit testing

Categories

(Release Engineering :: Release Automation: Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(2 files)

Lately, we introduce quite a few JS functions which could be easily tested.
We are already running Python unit tests with nosetests, we should do the same with js.
Assignee: nobody → sledru
A minor refactoring + a check added
Attachment #8537873 - Flags: review?(bhearsum)
Here are a few js unit test.
I have to dig how to call them from nosetest

For now, the test HTML has to be called with file:///
Attachment #8537876 - Flags: review?(bhearsum)
(In reply to Sylvestre Ledru [:sylvestre] from comment #2)
> Created attachment 8537876 [details] [diff] [review]
> 0002-Bug-1112117-Introduce-a-serie-of-JS-unit-tests.patch
> 
> Here are a few js unit test.
> I have to dig how to call them from nosetest
> 
> For now, the test HTML has to be called with file:///

Nose is specifically for running Python tests, it won't help. It might be nice to have a small wrapper that runs both at some point though. We can run these tests headlessly with phantomjs - which is a basically the webkit JS interpreter with a DOM. This isn't a blocker though.
Attachment #8537873 - Flags: review?(bhearsum) → review+
Comment on attachment 8537876 [details] [diff] [review]
0002-Bug-1112117-Introduce-a-serie-of-JS-unit-tests.patch

Review of attachment 8537876 [details] [diff] [review]:
-----------------------------------------------------------------

::: kickoff/test/jstest.html
@@ +1,1 @@
> +<!DOCTYPE html>

Please put these files in a subdirectory to keep them organized and separate from the python tests. eg, kickoff/test/js. r=me if you fix that on landing.
Attachment #8537876 - Flags: review?(bhearsum) → review+
Blocks: 1120826
Depends on: 1120589
deployed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: