Skip to content

Commit

Permalink
Re-organised tests into the ./tests folder and now using pytest for t…
Browse files Browse the repository at this point in the history
…est running
  • Loading branch information
stephendade authored and peterbarker committed Jul 14, 2018
1 parent f553770 commit 29060e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before_install:
- pip install --upgrade pip
install:
- pip install -r requirements.txt
- pip install flake8
- pip install flake8 pytest pytest-mock
before_script:
# fail the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
Expand Down Expand Up @@ -56,6 +56,6 @@ script:
- sudo chown -R $USER ~/.npm
- "cd generator/javascript && npm test"

# Test quaternions
# Run tests
- cd $TRAVIS_BUILD_DIR
- tools/quaterniontest.py
- python -m pytest
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Filter pytest to only running files with the following pattern
[pytest]
python_files = test_*.py
File renamed without changes.

0 comments on commit 29060e4

Please sign in to comment.