mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1240733 - Improve tox configuration for optional arguments. r=jlund DONTBUILD
This commit is contained in:
parent
a46d272ee4
commit
6eb87de76e
@ -1,22 +1,31 @@
|
||||
# Mozharness
|
||||
|
||||
### Submitting changes
|
||||
## Docs
|
||||
* https://developer.mozilla.org/en-US/docs/Mozharness_FAQ
|
||||
* https://wiki.mozilla.org/ReleaseEngineering/Mozharness
|
||||
* http://moz-releng-mozharness.readthedocs.org/en/latest/mozharness.mozilla.html
|
||||
* http://moz-releng-docs.readthedocs.org/en/latest/software.html#mozharness
|
||||
|
||||
## Submitting changes
|
||||
Like any Gecko change, please create a patch or submit to Mozreview and
|
||||
open a Bugzilla ticket under the Mozharness component:
|
||||
https://bugzilla.mozilla.org/enter_bug.cgi?product=Release%20Engineering&component=Mozharness
|
||||
|
||||
This bug will get triaged by Release Engineering
|
||||
|
||||
### Docs
|
||||
* https://developer.mozilla.org/en-US/docs/Mozharness_FAQ
|
||||
* https://wiki.mozilla.org/ReleaseEngineering/Mozharness
|
||||
* http://moz-releng-mozharness.readthedocs.org/en/latest/mozharness.mozilla.html
|
||||
* http://moz-releng-docs.readthedocs.org/en/latest/software.html#mozharness
|
||||
## Run unit tests
|
||||
To run the unit tests of mozharness the `tox` package needs to be installed:
|
||||
|
||||
### To run mozharness unit tests
|
||||
```
|
||||
pip install tox
|
||||
tox # from within the $gecko_repo/testing/mozharness directory
|
||||
```
|
||||
|
||||
There are various ways to run the unit tests. Just make sure you are within the `$gecko_repo/testing/mozharness` directory before running one of the commands below:
|
||||
|
||||
```
|
||||
tox # run all unit tests
|
||||
tox -- -x # run all unit tests but stop after first failure
|
||||
tox -- test/test_base_log.py # only run the base log unit test
|
||||
```
|
||||
|
||||
Happy contributing! =)
|
||||
|
@ -13,7 +13,7 @@ setenv =
|
||||
HGRCPATH = {toxinidir}/test/hgrc
|
||||
|
||||
commands =
|
||||
coverage run --source configs,mozharness,scripts --branch {envbindir}/nosetests -v --with-xunit --rednose --force-color
|
||||
coverage run --source configs,mozharness,scripts --branch {envbindir}/nosetests -v --with-xunit --rednose --force-color {posargs}
|
||||
|
||||
[testenv:py27-hg2.6]
|
||||
deps =
|
||||
|
Loading…
Reference in New Issue
Block a user