Skip to content

Commit 65b0806

Browse files
Abhi591rohitesh-wingify
authored andcommitted
fix: Test cases to be run via pytest
1 parent 071b3db commit 65b0806

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
3434
3535
- name: Run tests
36-
run: coverage run --source=vwo setup.py test
36+
run: coverage run --source=vwo -m pytest tests
3737

3838
- name: Upload coverage to Codecov
3939
uses: codecov/codecov-action@v3

git-hooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
set -e
44

55
echo "RUNNING PRE-PUSH SCRIPT"
6-
python setup.py test
6+
python -m pytest tests
77
if [ $? -eq 1 ]
88
then
99
echo "Some tests failed for python2" >&2
1010
exit 1
1111
else
12-
python3 setup.py test
12+
python3 -m pytest tests
1313
if [ $? -eq 1 ]
1414
then
1515
echo "Some tests failed for python3" >&2

requirements-ci.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mock==3.0.5
2-
coverage==4.5.4
2+
coverage==4.5.4
3+
pytest==8.4.2

0 commit comments

Comments
 (0)