Closed
Bug 1240165
Opened 9 years ago
Closed 8 years ago
eslint mark-test-function-used rule does not work for xpcshell
Categories
(Developer Infrastructure :: Lint and Formatting, defect)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox52 fixed)
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: tromey, Assigned: standard8)
References
Details
Attachments
(1 file)
The eslint mark-test-function rule does not work for xpcshell tests,
but should. Currently it only works for browser mochitests.
To work for xpcshell tests it should look for a file named test_*.js
and it should mark the function "run_test" as used.
Component: General → ESLint
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → standard8
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
Note: these changes resolves 941 no-unused-vars errors out of 3955ish when no-unused-vars is turned on in the toolkit eslint.
Blocks: 1312407
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•8 years ago
|
||
The update I've just pushed includes removal of a few places where run_test was being exported or handled especially.
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8804651 [details]
Bug 1240165 - Expand the eslint rule 'mark-test-function-used' to cover xpcshell tests as well as gecko tests and apply to the whole tree.
https://reviewboard.mozilla.org/r/88564/#review88696
Attachment #8804651 -
Flags: review?(mratcliffe) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/141c1a49b1b1
Expand the eslint rule 'mark-test-function-used' to cover xpcshell tests as well as gecko tests and apply to the whole tree. r=miker
Comment 7•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•7 years ago
|
Product: Testing → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•