Commit Graph
32 Commits
Author SHA1 Message Date
Andrew Halberstadt a64e516fb3 Bug 1403983 - Fix reftest regression where screenshots aren't being output and add a test, r=jmaher
MozReview-Commit-ID: 8ZqmukDtWpO
2017-09-28 12:26:51 -04:00
Andrew Halberstadt d1b9ebc88f Bug 1392390 - Refactor common code out of mochitest selftests and into a new moztest.selftest module, r=jmaher
This includes code for downloading a Firefox binary, downloading + setting up a tests.zip and
running output through mozharness' output parsers. This is all stuff that will also be required
for the reftest selftests.

I couldn't think of a better location to put this stuff, suggestions welcome.

MozReview-Commit-ID: 59TSbsugT5T
2017-09-11 16:06:06 -04:00
Ganti Sai Sarath Chandra 6bda4ec56b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn
2017-08-19 04:19:06 +05:30
Andrew Halberstadt bce781d9b8 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr
2017-06-15 12:10:59 -04:00
Andrew Halberstadt 64e33c7c26 Bug 1003417 - Add a 'mozbase' subsuite to python unittests on linux, r=ted
The subsuite is added conditionally because we only have the capability of
running source-check tasks on linux at the moment. Once taskcluster support
for windows and mac has matured a bit and the taskcluster configs support
source-check there, we should apply the subuite unconditionally.

MozReview-Commit-ID: Kk9Irz3fn14
2016-11-16 16:43:42 -05:00
Henrik Skupin 7a9bb96213 Bug 1323770 - Moztest should forward correct test result. r=ahal
Registered callback handlers for tests should receive the correct
test status when the test has been finished, and not always "Error".

This change allows those callbacks to run specific code for individual
test results, eg. only do screenshots for failures.

MozReview-Commit-ID: FfbCRR0Jvjb
2016-12-21 11:19:36 +01:00
Wes Kocher bebcfcd8a3 Backed out 4 changesets (bug 1323770) for marionette bustage a=backout
Backed out changeset bb8ccabdbe27 (bug 1323770)
Backed out changeset f1fbf0853e4f (bug 1323770)
Backed out changeset d0e5cb3af786 (bug 1323770)
Backed out changeset 71e82343afb9 (bug 1323770)
2016-12-28 14:09:26 -08:00
Henrik Skupin b792f9ee50 Bug 1323770 - Moztest should forward correct test result. r=ahal
Registered callback handlers for tests should receive the correct
test status when the test has been finished, and not always "Error".

This change allows those callbacks to run specific code for individual
test results, eg. only do screenshots for failures.

MozReview-Commit-ID: FfbCRR0Jvjb
2016-12-21 11:19:36 +01:00
Andrew Halberstadt e7efd21c97 Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6
2016-11-17 16:36:18 -05:00
Francesco Pischedda 46c0d4af68 Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal
added testing/mozbase to tools/lint/flake8.lint
fixed a first batch of PEP8 errors/warnings

at first the commad autopep8 -i --max-line-length 99 -r -j 8 .
has been used to fix simpler problems, run from testing/mozbase

some of the issues can not easily fixed :
- undefined 'names' in code for example isLinux - isLinux and isBsd "fixed" with # noqa
- undefined 'message' resolved with return fmt.format(...
- undefined 'structured' resolved replacing those with mozlog
- long comments - some remaining - addressed with # noqa
- package level import everything - addressed with # flake8: noqa

restored testing/mozbase/mozdevice/mozdevice/Zeroconf.py
fixed issues reported on mozreview
fixed ')' in testing/mozbase/mozprocess/mozprocess/qijo.py imports
finally fixed multiline string at testing/mozbase/manifestparser/tests/test_manifestparser.py:114
^^^ and again, but now with ./mach python-test --path-only testing/mozbase/manifestparser/tests/test_manifestparser.py passing
fixed testing/mozbase/manifestparser/tests/test_convert_directory.py assert

fixed this error:
10:15:21     INFO -      return lambda line: stack_fixer_module.fixSymbols(line)
10:15:21     INFO -  TypeError: fixSymbols() takes exactly 2 arguments (1 given)

fixed two spaces lint error even of #  noqa comments
restored assignement to lambda with #  noqa to silence the lint error
global noqa for testing/mozbase/manifestparser/tests/test_filters.py
stupid is/is not error...

MozReview-Commit-ID: 1FpJF54GqIi
2016-09-30 16:08:37 +02:00
Julien Pagès 8cb0870681 Bug 1065406 - [mozlog] Split test class and name for XUnit formatter. r=jgraham 2014-12-16 16:02:00 +01:00
Chris Manchester e85b92072f Bug 1060523 - Omit extra newlines when logging exception messages in moztest. r=jgraham 2014-08-29 14:43:28 -04:00
Chris Manchester 9cfaf3fd3a Bug 1056931 - Release a new moztest to pick up stack logging.;r=jgraham 2014-08-21 17:50:54 -04:00
Chris Manchester f13ee71ab4 Bug 1055679 - Log stacks and messages separately in moztest's unittest adapter and include stacks in mozlog's test_end.;r=jgraham 2014-08-19 17:22:53 -04:00
Chris Manchester 4a33d5736b Bug 1035006 - Fix pyflakes warnings in mozbase.;r=wlach 2014-07-07 14:51:34 -04:00
Chris Manchester 86d3a9c22b Bug 1020625 - Don't call structured logging's suite_start and suite_end per test suite. r=jgraham 2014-06-09 12:01:26 -04:00
Andreas Tolfsen 5f075fbe48 Bug 1017675 - Bump moztest to version 0.5. r=jgraham
---
 testing/mozbase/moztest/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2014-05-29 18:08:31 +01:00
Andreas Tolfsen 964f5d55dc Bug 1017596 - Add suite_start and suite_end messages to moztest.adapters.unit. r=jgraham
This properly implements the structured logging protocol in the unittest
adapter.

The patch also adds an optional argument `test_list` to StructuredTestLogger
which will include an array of all tests when sending the suite_start message.
---
 testing/mozbase/moztest/moztest/adapters/unit.py | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
2014-05-29 18:08:24 +01:00
Ryan VanderMeulen b2d67a7609 Backed out changeset 3a9b6d6d9224 (bug 1017596) for making Mn more orange-prone. 2014-05-29 15:17:29 -04:00
Ryan VanderMeulen e9ae59d3a3 Backed out changeset c9f8e59a7e0d (bug 1017675) for making Mn more orange-prone. 2014-05-29 15:17:21 -04:00
Andreas Tolfsen d8df59bb36 Bug 1017675 - Bump moztest to version 0.5. r=jgraham
---
 testing/mozbase/moztest/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2014-05-29 18:08:31 +01:00
Andreas Tolfsen 39aea8ae44 Bug 1017596 - Add suite_start and suite_end messages to moztest.adapters.unit. r=jgraham
This properly implements the structured logging protocol in the unittest
adapter.

The patch also adds an optional argument `test_list` to StructuredTestLogger
which will include an array of all tests when sending the suite_start message.
---
 testing/mozbase/moztest/moztest/adapters/unit.py | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
2014-05-29 18:08:24 +01:00
James Graham 5761be40de Bug 1014593 - Update moztest version number to release latest changes, r=ahal 2014-05-22 15:41:13 +01:00
Andrew Halberstadt d3a120536c Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-19 16:42:01 -05:00
Wes Kocher 8fd437b458 Backed out changeset a7f8c25c07ac (bug 949600) for breaking clobber due to new update_permissions code, regardless of whether this is a CLOSED TREE. 2014-02-18 16:12:34 -08:00
Andrew Halberstadt 5e63bce1a7 Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-18 09:25:58 -05:00
Jonathan Griffin a984e299e2 Bug 904682 - Mirror moztest to m-c. r=jhammel 2013-08-15 12:57:55 -04:00
Andrew Halberstadt 9f7260fd65 Bug 895940 - Mirror mozbase to m-c, r=jhammel 2013-07-25 16:27:53 -04:00
Jeff Hammel 9c9306e728 Bug 790018 - bump version of manifestdestiny and mirror to m-c;r=mcote 2012-09-11 19:46:39 -07:00
Jonathan Griffin 392bbbabf1 Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 17:58:39 -07:00
Jonathan Griffin 167534c659 backout 69243e829931 due to OSX 10.7 bustage 2012-09-07 17:05:26 -07:00
Jonathan Griffin 61f642c9c8 Bug 788842 - Mirror mozbase to m-c, r=jhammel 2012-09-07 15:39:17 -07:00