Open Bug 683648 Opened 13 years ago Updated 2 years ago

Prevent mochitests from overwriting each other's test results

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(Not tracked)

People

(Reporter: jgriffin, Unassigned)

Details

There are some cases where a mochitest-plain test can overwrite the test results of another test, so that they don't show up in the summary at the end, and thus are not reported by TBPL.

Some of the things that can cause this:

1 - a test accidentally performing a back nav, which loads the previous test in the current test's context (see e.g. bug 680164)
2 - an asynchronous test in which an assert occurs after SimpleTest.finish() is called
3 - finish() is called before waitForExplicitFinish() (bug 682901)

It might be possible to address all these by the same mechanism; ctalbert proposed using SpecialPowers to store the test results in chrome, rather than in content as they are now.
Assignee: nobody → mdas
Assignee: mdas → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.