forked from istresearch/scrapy-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_offline_tests.sh
More file actions
executable file
·34 lines (33 loc) · 889 Bytes
/
run_offline_tests.sh
File metadata and controls
executable file
·34 lines (33 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
cd utils
nosetests -v --with-coverage --cover-erase
if [ $? -eq 1 ]; then
echo "utils tests failed"
exit 1
fi
cd ../kafka-monitor
nosetests -v --with-coverage --cover-erase --cover-package=../kafka-monitor/
if [ $? -eq 1 ]; then
echo "kafka-monitor tests failed"
exit 1
fi
cd ../redis-monitor
nosetests -v --with-coverage --cover-erase --cover-package=../redis-monitor/
if [ $? -eq 1 ]; then
echo "redis-monitor tests failed"
exit 1
fi
cd ../crawler
nosetests -v --with-coverage --cover-erase --cover-package=crawling/
if [ $? -eq 1 ]; then
echo "crawler tests failed"
exit 1
fi
cd ../rest
nosetests -v --with-coverage --cover-erase --cover-package=../rest/
if [ $? -eq 1 ]; then
echo "rest tests failed"
exit 1
fi
cd ../
coverage combine crawler/.coverage kafka-monitor/.coverage redis-monitor/.coverage utils/.coverage rest/.coverage