./devel/py-test-relaxed, Relaxed test discovery/organization for pytest

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.4, Package name: py27-test-relaxed-1.1.4, Maintainer: pkgsrc-users

pytest-relaxed provides 'relaxed' test discovery for pytest.

Has it ever felt strange to you that we put our tests in tests/, then name the
files test_foo.py, name the test classes TestFoo, and finally name the test
methods test_foo_bar? Especially when almost all of the code inside of tests/
is, well, tests?

This pytest plugin takes a page from the rest of Python, where you don't have
to explicitly note public module/class members, but only need to hint as to
which ones are private. By default, all files and objects pytest is told to
scan will be considered tests; to mark something as not-a-test, simply prefix
it with an underscore.


Required to run:
[devel/py-setuptools] [lang/python27] [devel/py-decorator] [devel/py-test] [lang/py-six]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: c27014e709a83c5b4e087023b9573f30d8aec3e1
RMD160: 6d310eba8aec1c1d101c3d9b8401f7648ba077b2
Filesize: 26.225 KB

Version history: (Expand)


CVS history: (Expand)


   2018-08-05 12:30:12 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-relaxed: updated to 1.1.4

1.1.4:
- :support:- backported Add missing universal wheel indicator in setup
  metadata.

1.1.3:
- :bug:- Fix the @raises helper decorator so it actually raises an
  exception when the requested exception is not raised by the decorated
  function. That's definitely not a confusing sentence.
   2018-04-18 09:18:21 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-relaxed: updated to 1.1.2

1.1.1:
[Bug]: Bypass pytestmark objects and attributes during our custom collection \ 
phase; we don’t need to process them ourselves, pytest is already picking up \ 
the original top level copies, and having them percolate into nested classes was \ 
causing loud pytest collection-step warnings.
[Bug]: Installation and other setup.py activities implicitly assumed native \ 
Unicode support due to naively opening README.rst. setup.py now explicitly opens \ 
that file with a utf-8 encoding argument.
   2017-11-26 18:20:35 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-relaxed: updated to 1.1.0

1.1.0:
Add support for collecting/displaying hybrid/legacy test suites -- specifically, \ 
by getting out of pytest's way on collection of test_named_files and stripping \ 
test prefixes/suffixes when displaying tests in verbose mode. This makes it \ 
easier to take an existing test suite and slowly port it to 'relaxed' style.
   2017-11-15 10:23:18 by Adam Ciarcinski | Files touched by this commit (5)
Log message:
py-test-relaxed: added version 1.0.0

pytest-relaxed provides 'relaxed' test discovery for pytest.

Has it ever felt strange to you that we put our tests in tests/, then name the
files test_foo.py, name the test classes TestFoo, and finally name the test
methods test_foo_bar? Especially when almost all of the code inside of tests/
is, well, tests?

This pytest plugin takes a page from the rest of Python, where you don't have
to explicitly note public module/class members, but only need to hint as to
which ones are private. By default, all files and objects pytest is told to
scan will be considered tests; to mark something as not-a-test, simply prefix
it with an underscore.