[PATCH] tests: add pytest section and put tox and tests/scripts to norecursedirs
Marc Abramowitz
msabramo at gmail.com
Wed Apr 22 11:37:32 EDT 2015
This is cool. I would add .eggs to norecursedirs as this is something that
newer versions of setuptools create. With the patch below, I am able to get
everything to pass with pytest:
```
$ tox -e py27-pytest
...
==================================== 1589 passed, 31 skipped in 223.10
seconds =====================================
______________________________________________ summary
__________________________________________________________
py27-pytest: commands succeeded
congratulations :)
```
Patch:
```diff
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,5 @@
[pytest]
-norecursedirs = kallithea/tests/scripts .tox
-
+norecursedirs = kallithea/tests/scripts .tox .eggs
[tox]
envlist = py{26,27}-{pytest,nose}
```
On Mon, Apr 20, 2015 at 10:26 PM, Ronny Pfannschmidt <
opensource at ronnypfannschmidt.de> wrote:
> # HG changeset patch
> # User Ronny Pfannschmidt <opensource at ronnypfannschmidt.de>
> # Date 1429555101 -7200
> # Mon Apr 20 20:38:21 2015 +0200
> # Node ID b91b4caf0f35712a6c4f20cdb1afe3257284711c
> # Parent 5a051d86fc6325c609712beab1bdf1b3447e45f9
> tests: add pytest section and put tox and tests/scripts to norecursedirs
>
> kallithea/tests/scripts are non-integrated messy tests
> that cant be part of a testsuite as is
>
> diff --git a/tox.ini b/tox.ini
> --- a/tox.ini
> +++ b/tox.ini
> @@ -1,3 +1,7 @@
> +[pytest]
> +norecursedirs = kallithea/tests/scripts .tox
> +
> +
> [tox]
> envlist = py{26,27}-{pytest,nose}
>
>
> _______________________________________________
> kallithea-general mailing list
> kallithea-general at sfconservancy.org
> http://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150422/61dbacac/attachment.html>
More information about the kallithea-general
mailing list