Open Bug 1857210 Opened 2 years ago Updated 2 years ago

Improve messaging about what's wrong with a test file in isTest

Categories

(Testing :: Mochitest, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: sparky, Unassigned)

Details

I was trying to run a test locally through mochitest, and I didn't know there were rules that file names should be following. This resulted in this error:
0:01.01 WARNING Warning: perftest_sw_register_performance.html from manifest /home/sparky/mozilla-source/mozilla-central/dom/serviceworkers/test/mochitest-common.ini is not a valid test
The issue here is that the file exists, but it's unclear what needs to be fixed. I found out after some digging that it's because it was missing the test_ prefix in the file name.

I think it would be helpful to add some additional error logging to this method to clarify why the test file is problematic: https://searchfox.org/mozilla-central/source/testing/mochitest/runtests.py#1180-1197

Summary: Improve messaging about what's wrong with a test file → Improve messaging about what's wrong with a test file in isTest
You need to log in before you can comment on or make changes to this bug.