| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The changeset above intended to only display DeprecationWarning. But it also
enables ImportWarning. There is a lot of ImportWarning and most of them are
useless.
This changeset only enable DeprecationWarning and keep ImportWarning quiet
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Otherwise, pycoverage crashes when run in the rql directory, because it of conflicting modules (parser)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- bin/pytes{.bat} are now classic python 2-liners scripts
- pytest now only uses testlib.unittest_main() (in batch mode)
instead of testlib.main()
- pytest has its own options which are pased to unittest_main
Note: pytest options are handled with optarse which means options
can be passed **after** testfile name !
Typical usages:
$ pytest
$ pytest mytestfile.py
$ pytest mytestfile.py -x testpattern
$ pytest -t mytestdir -xi
|
|
|
|
|
|
|
|
| |
One advantage is that the testfile being tested does not need
to be based on logilab.common.testlib. pytest will happily monkeypatch
unittest (and doctest) to use lgc.testlib classes instead of standard ones.
|
| |
|
| |
|
|
|