Open Bug 1694772 Opened 3 years ago Updated 1 year ago

Improve windows developer experience for npm run debugcoverage

Categories

(Firefox :: Messaging System, task, P3)

task

Tracking

()

People

(Reporter: Mardak, Assigned: emcminn)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

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.

Assignee: nobody → emcminn
Severity: -- → S3
Iteration: --- → 88.1 - Feb 22 - Mar 7
Priority: -- → P1
Iteration: 88.1 - Feb 22 - Mar 7 → 88.2 - Mar 8 - Mar 21

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!

Flags: needinfo?(brennie)
Depends on: 1698208
Attached file test.log
here is the result of `mach npm run test --prefix=browser/components/newtab`. Running `npm test` in `browser/components/newtab` has the same result:

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.

Flags: needinfo?(brennie)

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.

Priority: P1 → P3
Iteration: 88.2 - Mar 8 - Mar 21 → ---

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?

See Also: → 1737419, 1736617, 1698208
Summary: Improve windows developer experience for testmc/debugcoverage scripts → Improve windows developer experience for npm run debugcoverage
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: