Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ env/
.DS_Store
tags
*.aux
.coverage
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ install:
- gem install mdl
script:
- make all
after_success:
- coveralls
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ syntax:
mdl --rules ~MD036 etc
test:
cd backend && python manage.py test
cd sniffer && python test_sniff.py
cd sniffer && nosetests --with-coverage --cover-package=app,sniffer
cd realtime && npm run test
cd client && npm run test
coverage combine backend/.coverage sniffer/.coverage
10 changes: 10 additions & 0 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_nose'
]

MIDDLEWARE_CLASSES = [
Expand Down Expand Up @@ -162,3 +163,12 @@
}
}
}

# Testing settings

TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

NOSE_ARGS = [
'--with-coverage',
'--cover-package=breach'
]
3 changes: 3 additions & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Django==1.9.2
PyYAML==3.11
argh==0.26.1
argparse==1.2.1
coverage==4.2
coveralls==1.1
django-nose==1.4.4
funcsigs==0.4
mock==1.3.0
pathtools==0.1.2
Expand Down
1 change: 1 addition & 0 deletions sniffer/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Flask==0.10.1
scapy==2.3.2
tl.testing==0.5
mock==1.3.0
nose==1.3.7