Closed Bug 1070057 Opened 10 years ago Closed 10 years ago

Make TestResolver.resolve_tests filter by subsuite

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla35

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file)

I'm implementing a new test suite: Android instrumentation tests. This suite has natural subsuites that correspond to different instrumentation APK files; right now we have browser and background; I expect to grow a few more. I want to filter by subsuite both in my test runner (which parses manifests directly) and in my mach command (which uses all-tests.json and TestResolver). I'd like to make TestResolver.resolve_tests filter by subsuite as well. There's a little wrinkle with devtools being a subsuite but handled specially; but I don't think I need to touch that.
It would be nice if subsuites were handled the same across all test harnesses. Having two different methods of dealing with them sounds confusing.
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #1) > It would be nice if subsuites were handled the same across all test > harnesses. Having two different methods of dealing with them sounds > confusing. I agree, but I don't understand this special processing for devtools and frankly I don't care to shave that yak.
You can see the devtools funkyness just above. I think the thing is that devtools is a subsuite that for historical reasons is treated as a different flavour. Very confusing.
Attachment #8492434 - Flags: review?(ted)
I think it was actually a request from the devtools team to have their own symbol on tbpl but instead of implementing a new mochitest flavour it was done via manifest hacking (which I'm guessing required fewer buildbot related changes).
Comment on attachment 8492434 [details] [diff] [review] Make TestResolver.resolve_tests filter by subsuite. r=ted Review of attachment 8492434 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/testing.py @@ +90,5 @@ > ``xpcshell``. > + > + If ``subsuite`` is a string, it will be used to filter returned tests > + to only be in the subsuite specified. A subsuite is something like > + ``browser`` or ``background``. I'm not sure that the examples in the docstring are super-useful, given that they vary from suite to suite.
Attachment #8492434 - Flags: review?(ted) → review+
Assignee: nobody → nalexander
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Flags: qe-verify-
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: