gecko-dev/testing/mochitest
Andrew Halberstadt f53f58d169 Bug 1472280 - [mochitest] Provide better 'lastTestSeen' strings to differentiate the end of a test r=jmaher
Currently mochitest looks for a test_start log action and stores the name of
the test in an instance variable. In the event of a timeout/hang, this string
is used in the log to help people try and narrow down where it happened.

However, there are a couple cases it can be misleading:
1) If the hang happens during shutdown, it looks like it was the last test's fault (it probably isn't)
2) If the hang happens in-between tests, it looks like the test timed out

We should make the string more descriptive. I propose that when we get a
test_end action, we change it to <test> (finished). And when we get the test
end action of the last test, we change it to "Last test finished".

This way it narrows down where the hang happened even further.

MozReview-Commit-ID: B6g8JrIJuJw

Differential Revision: https://phabricator.services.mozilla.com/D1885

--HG--
extra : moz-landing-system : lando
2018-06-30 09:00:18 +00:00
..
baselinecoverage Bug 1472575 - Add delay to baseline coverage tests. r=jmaher 2018-06-19 16:09:16 -04:00
BrowserTestUtils Bug 1469334 - Properly document arguments for ContentTaskUtils.waitForCondition. r=jmaher 2018-06-18 18:39:40 +02:00
chrome Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
dynamic
embed
manifests
MochiKit
pywebsocket
ssltunnel Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
static
tests Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt 2018-06-27 11:10:02 -04:00
__init__.py
bisection.py
bootstrap.js Bug 1444973 - Remove browser-test-overlay.xul. r=ahal 2018-03-13 17:33:33 -07:00
browser-harness.xul Bug 1445551: Part 1a - Add uses-unsafe-cpows annotation to mochitest harness. r=mconley 2018-03-13 19:11:10 -07:00
browser-test.js Bug 1458375 - Make browser mochitests wait for browser-idle-startup-tasks-finished before running tests. r=kmag 2018-06-05 14:21:53 -07:00
chrome-harness.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
chunkifyTests.js Bug 1457835 - Enable ESLint for testing/mochitest (automatic changes). r=jmaher 2018-01-26 21:32:30 +00:00
favicon.ico Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
gen_template.pl
harness.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
install.rdf Bug 1446676: Part 1b - Convert automation overlay extensions to bootstrapped extensions. r=aswan 2018-03-16 21:31:04 -07:00
jar.mn Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian 2018-04-18 11:43:45 -07:00
leaks.py Bug 1395935 - Include leaks in mochitest summary fail count; r=ahal 2017-11-23 10:02:22 -07:00
mach_commands.py Bug 1445716 - Add Android mach command 'geckoview-junit'; r=jmaher 2018-04-18 14:43:35 -06:00
mach_test_package_commands.py Bug 1429158 - Use 'mach' format by default for one-click-loaner mochitests, r=jmaher 2018-01-09 14:34:27 -05:00
manifest.webapp
manifestLibrary.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
mochitest_options.py Bug 1466958 - Fix mochitests when run locally against an android build. r=gbrown 2018-06-05 17:09:54 -05:00
mochitest-e10s-utils.js
moz.build Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
nested_setup.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
pywebsocket_wrapper.py
README.txt
redirect.html Bug 1457835 - Enable ESLint for testing/mochitest (automatic changes). r=jmaher 2018-01-26 21:32:30 +00:00
rungeckoview.py Bug 1445716 - Add runjunit.py, a test harness for junit tests on Android devices; r=jmaher 2018-04-18 14:43:33 -06:00
runjunit.py Bug 1470177 - Improve timeout handling in runjunit.py; r=bc 2018-06-25 10:09:45 -06:00
runrobocop.py Bug 1460610: Fix content process whitelist for profile extensions when none are present at startup. r=aswan 2018-05-19 17:23:01 -07:00
runtests.py Bug 1472280 - [mochitest] Provide better 'lastTestSeen' strings to differentiate the end of a test r=jmaher 2018-06-30 09:00:18 +00:00
runtestsremote.py Bug 1462182 - Dump less device info during Android test-verify; r=jmaher 2018-05-17 16:19:02 -06:00
server.js Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj 2018-05-19 20:17:45 -07:00
shutdown-leaks-collector.js Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
ShutdownLeaksCollector.jsm Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
start_desktop.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.