Closed Bug 1575574 Opened 5 years ago Closed 5 years ago

DevTools node tests should be runnable via `mach test`

Categories

(DevTools :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1535113

People

(Reporter: ochameau, Unassigned)

References

(Blocks 1 open bug)

Details

As we start using more node tests, we should start looking into better integrating into existing mozilla-central tooling.
The DevTools node tests are currently not easily:

  • "sheriffable", i.e. be able to disable a given test
  • runnable

At least not as easy as the other tests suites of mozilla-central.
To be "sheriffable", we need some ini files like xpcshell.ini or browser.ini manifests.
To be runnable, we need some integration into mach so that all necessary environment setup is installed and executed (node and yarn) and that mach calls the right script to run the given test. We could start with a mach devtools-node-test command or similar and then later integrate into mach test.

Bug 1540655 demonstrates how to do most of that for puppeteer tests, which are also node tests.

Thanks Alex, I think these points are captured by bug dbg-node-tests. If we're missing something, we should create some new blocking bugs below it to help stay organized.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.