Closed
Bug 1261884
Opened 8 years ago
Closed 8 years ago
Running a single a11y test also runs browser_autocomplete_a11y_label.js
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(firefox48 affected)
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox48 | --- | affected |
People
(Reporter: martijn.martijn, Unassigned)
Details
Attachments
(1 file)
85.48 KB,
text/plain
|
Details |
From discussion in bug 1138426, comment 8: If I run this test for example: ./mach mochitest a11y accessible/tests/mochitest/jsat/test_tables.html It also runs this test afterwards: browser/base/content/test/general/browser_autocomplete_a11y_label.js Why is that? Attached is the log while running the test_tables.html test. This is my .mozconfig: ac_add_options --enable-debug ac_add_options --enable-accessibility ac_add_options --enable-signmar # Enable parallel compiling mk_add_options MOZ_MAKE_FLAGS="-j12" mk_add_options AUTOCLOBBER=1 # Treat warnings as errors in directories with FAIL_ON_WARNINGS. # ac_add_options --enable-warnings-as-errors ac_add_options --with-ccache # Package js shell. export MOZ_PACKAGE_JSSHELL=1 Andrew, do you perhaps know why this is happening for me? Why is browser_autocomplete_a11y_label.js running for me afterwards?
Flags: needinfo?(ahalberstadt)
Comment 1•8 years ago
|
||
I think you mean to use -f/--flavor. This will limit the run to only a11y, e.g: ./mach mochitest -f a11y <path/to/tests> But using --flavor isn't needed when only running a single test. The flavor will automatically be determined in this case. So this should also work the same: ./mach mochitest accessible/tests/mochitest/jsat/test_tables.html In case you're interested, what your command line is doing is passing in the string "a11y" into mozbuild.testing.TestResolver. For some reason (don't ask me why), TestResolver determined that browser_autocomplete_a11y_label.js is the only test that that string resolves to. Must be looking for a substring match in the test name or something.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(ahalberstadt)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•