Improve windows developer experience for npm run debugcoverage
Categories
(Firefox :: Messaging System, task, P3)
Tracking
()
People
(Reporter: Mardak, Assigned: emcminn)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
3.27 KB,
text/plain
|
Details |
barret has run into some issues with running unit tests on windows but seems to have gotten it mostly working.
FIREFOX_BIN
needed to be set for testmc:unit
as command
arg in karma config doesn't work.
The debugcoverage
script uses open
but doesn't exist for windows/mozilla-build, but the log files do exist and can be manually opened.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Barret, would you mind trying a few things? I'm trying to figure out how specific the issues are (debugcoverage
is definitely a problem).
First, from the mozilla-central directory, can you run unit tests with ./mach npm run test --prefix=browser/components/newtab
? If it fails, does it fail at the linting step or after that?
If linting fails with the above, do the tests run if you do ./mach npm run testmc:unit --prefix=browser/components/newtab
?
Last, what happens when you run ./mach npm run tddmc --prefix=browser/components/newtab
? Does webpack start watching/the karma window open ok?
Thanks!
Comment 2•3 years ago
|
||
here is the result of `mach npm run test --prefix=browser/components/newtab`. Running `npm test` in `browser/components/newtab` has the same result:
Comment 3•3 years ago
|
||
Both ./mach npm run testmc:unit --prefix=browser/components/newtab
and cd browser/components/newtab; npm run testmc:unit
work as expected (Firefox is launched headlessly and tests run and pass)
Both ./mach npm run tddmc --prefix/browser/components/newtab
and cd browser/components/newtab; npm run tddmc
work as expected (Firefox is launched normally and tests run and pass). webpack correctly watches for changes and rebuilds, which re-runs the tests.
Assignee | ||
Comment 4•3 years ago
|
||
Given that there may be some changes coming soon from the Windows build team, I'm going to de-prioritize this and we can revisit once changes have been made.
Updated•3 years ago
|
Reporter | ||
Comment 5•3 years ago
|
||
Bug 1737419 updates the source docs notes giving examples of how to run testmc:unit and bug 1736617 sets FIREFOX_BIN. Bug 1698208 covers fixing lint
so test
works, so the only thing here might just be debugcoverage
usage of open
?
Updated•1 year ago
|
Description
•