Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Dustin J. Mitchell 22bd1fe157 Bug 1272315: mozunit: log error message with line number only if available; r=glandium
MozReview-Commit-ID: 7Ye9RrKw6cw

--HG--
extra : rebase_source : d7ca5d202354f1c95a057abede465583c06b6c45
extra : source : 8b3b9c531a5ef763d2ee1c340aa41af474dd7810
2016-05-24 15:32:39 +00:00
Dustin J. Mitchell 0444ac1f2f Bug 1258497: allow mozunit to pass along kwargs; r=gps
MozReview-Commit-ID: DzmF3zF5jeD

--HG--
extra : rebase_source : b8fead11cee6600cbf6ea241e77208f2418007cb
2016-05-09 18:56:24 +00:00
Mike Hommey 4e5e6fd2d4 Bug 1247833 - Display the class name in mozunit output. r=gps
One can run individual tests with python testfile.py Class.method. But
the output for tests only shows the method so looking at a test output
is not enough to tell how to run one particular test. Moreover, there
are many cases where a test file contains multiple classes, and we fail
to identify the difference between those classes.
2016-02-17 07:19:46 +09:00
Mike Hommey a97df3d684 Bug 801679 - Handle expected failures and skipped tests in mozunit runner. r=gps
Python's unittest has decorators to mark tests as skipped or expecting
to fail. Mozunit runner fails to print anything for them.

While here, somehow unify the output for TEST-UNEXPECTED-FAIL.

This leaves known failures silent about the failure. It would be better
to only show them with a flag, like -v, and to leave it to a followup.
2016-02-17 07:19:46 +09:00
Mike Hommey bb27c7040b Bug 795681 - Print out failures in mozunit runner. r=gps
Python's unittest separates errors and failures, where the former is
uncaught exceptions and the latter uncaught assertions. We were only
printing the former, making the mozunit runner output useless to debug
failures due to assertions in the code being tested.

I would usually edit the test to temporarily switch to unittest.main().
Enough is enough, handle failures properly.

At the same time, instead of printing all the errors one after the other
at the end, print them right after the TEST-UNEXPECTED-FAIL message.
2016-02-17 07:19:46 +09:00
Gregory Szorc e7b3d38b5c Bug 937803 - os.path.exists should work with MockedOpen; r=glandium
--HG--
extra : rebase_source : 567b70b6a75f3c918da2c99ceb490ac569919ed0
2013-11-12 12:30:34 -08:00
Yati Sagade 999eeb2111 Bug 812179 - Removed hacks for Python < 2.6 from config/ [r=ted] 2013-02-27 22:30:56 +05:30
Mike Hommey 461308faae Bug 776035 part 2 - Add an enhanced MockedOpen facility to mozunit.py. r=ted 2012-07-25 07:44:08 +02:00
Mike Hommey e4b0f1bfcc Bug 776035 - Make mozunit even easier to use, and use it in config/tests python unit tests. r=ted 2012-07-25 07:44:08 +02:00
Ed Morley 3d60969c38 Backout eecd3aa199e6 (bug 776305), 62facd5b3da9, c6a0ac7d47d2 & 2d56621abfee (bug 776035), e4e68cf2bd40 (bug 776016), 0853a4d49b4e & 31de6ffdedcb (bug 770426), 43a69b4981f5 (bug 756786) for Windows mochitest crashes 2012-07-25 09:35:32 +01:00
Mike Hommey 4c48c001f8 Bug 776035 part 2 - Add an enhanced MockedOpen facility to mozunit.py. r=ted 2012-07-25 07:44:08 +02:00
Mike Hommey 985de147d7 Bug 776035 - Make mozunit even easier to use, and use it in config/tests python unit tests. r=ted 2012-07-25 07:44:08 +02:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Axel Hecht 3bfa6c669d bug 505713, adding tests for JarMaker.py, better error reporting for missing files in jars, r=ted
--HG--
extra : rebase_source : f3d30aab31952398fed9feac4f42491f95ca5043
2009-10-27 13:33:38 +01:00