Browse Source

Offer pytest as testing tool

It's optional
Jocelyn Delalande 8 years ago
parent
commit
c2e8244741
3 changed files with 15 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 10 0
      README.md
  3. 4 0
      setup.cfg

+ 1 - 0
.gitignore

@@ -13,3 +13,4 @@ coin/settings_local.py
 .idea
 .idea
 venv
 venv
 /coin.sqlite3
 /coin.sqlite3
+.cache/

+ 10 - 0
README.md

@@ -127,6 +127,16 @@ LDAP-related tests are disabled by default.
 Setup LDAP parameters and activate LDAP in settings to make the LDAP tests
 Setup LDAP parameters and activate LDAP in settings to make the LDAP tests
 run.
 run.
 
 
+### With pytest
+
+Setup:
+
+    pip install pytest-django
+
+Run:
+
+    pytest
+
 
 
 Available commands
 Available commands
 ==================
 ==================

+ 4 - 0
setup.cfg

@@ -0,0 +1,4 @@
+[tool:pytest]
+DJANGO_SETTINGS_MODULE=coin.settings_test
+norecursedirs = .* _build tmp*  build dist *.egg *venv*
+python_files = tests* test*