Open Bug 1724780 Opened 4 years ago Updated 3 years ago

`mach xpcshell-test` warns about a valid `xpcshell.ini` not resolving to any tests, but runs the tests anyway

Categories

(Testing :: XPCShell Harness, defect, P3)

Firefox 93
defect

Tracking

(Not tracked)

People

(Reporter: tgiles, Unassigned)

Details

When attempting to run the tests in a valid xpcshell.ini file, xpcshell-test will warn The following path(s) didn't resolve any tests but then run those tests anyway:

0:00.03 INFO Found moz-http2 at g:\mozilla\mozilla-central-git\testing\xpcshell\moz-http2\moz-http2.js
 0:00.12 INFO Found g:/mozilla/mozilla-central-git/obj-x86_64-pc-mingw32\dist\bin\http3server.exe
 0:00.12 INFO Using g:/mozilla/mozilla-central-git\netwerk\test\http3serverDB
 0:00.47 WARNING The following path(s) didn't resolve any tests:
  toolkit/components/passwordmgr/test/unit/xpcshell.ini
 0:00.48 INFO Using at most 36 threads.
 0:00.48 SUITE_START: xpcshell - running 46 tests
 0:00.48 TEST_START: toolkit/components/passwordmgr/test/unit/test_loginsBackup.js

Here's the xpcshell.ini for passwordmgr, showing that "test_loginsBackup.js" is an existing test

when running locally we still run the tests for debugging purposes. I assume this is locally, not in CI? Also are you passing in a specific path?

Severity: -- → S3
Priority: -- → P3

Yeah, this is running locally, I should have clarified. I'm able to reproduce the warning message with both:
mach xpcshell-test toolkit/components/passwordmgr/test/unit/xpcshell.ini
mach xpcshell-test toolkit/components/passwordmgr/

You need to log in before you can comment on or make changes to this bug.