Closed
Bug 970886
Opened 11 years ago
Closed 10 years ago
MarionetteTestRunner runs tests twice if the filename is the same
Categories
(Remote Protocol :: Marionette, defect, P2)
Tracking
(firefox42 fixed)
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: zcampbell, Assigned: parkouss)
References
Details
(Keywords: pi-marionette-runner, Whiteboard: [runner][affects=webqa marionette])
Attachments
(2 files)
2.37 KB,
application/zip
|
Details | |
1.87 KB,
patch
|
automatedtester
:
review+
|
Details | Diff | Splinter Review |
Here we have two py files with identical names.
Their class names and test methods are different, however when running the second test file the TestRunner will also run the test case from the first file again.
$ gaiatest --address localhost:2828 --testvars testvars.json --html-output results/index.html tests/app1/ tests/app2/
starting httpd
running webserver on http://10.246.27.126:53424/
test_do_something_app1 (test_case_1.App1) ... ok
----------------------------------------------------------------------
Ran 1 test in 10.833s
OK
test_do_something_app1 (test_case_1.App1) ... ok
test_do_something_app2 (test_case_1.App2) ... ok
----------------------------------------------------------------------
Ran 2 tests in 22.684s
OK
SUMMARY
-------
passed: 3
failed: 0
todo: 0
Reporter | ||
Comment 1•11 years ago
|
||
Here is the folder and tests I used for this
Reporter | ||
Comment 2•11 years ago
|
||
To prove real-world scenario, this arose where we had:
accessibility/lockscreen/test_unlock_to_homescreen.py
functional/lockscreen/test_unlock_to_homescreen.py
Updated•11 years ago
|
Whiteboard: [runner]
Updated•11 years ago
|
Priority: -- → P2
Updated•11 years ago
|
Keywords: ateam-marionette-runner
Updated•11 years ago
|
Whiteboard: [runner] → [runner][affects=webqa marionette]
Assignee | ||
Comment 4•10 years ago
|
||
I tried locally with the example provided in the zip (just modified the import to use MarionetteTestCase instead of gaia*, but the issue was the same).
So without the patch, the first test is ran twice, and the log shows 3 executed tests.
With the patch, this is fixed and we execute only 2 tests, as expected.
Updated•10 years ago
|
Attachment #8634041 -
Flags: review?(dburns) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•