Skip to content

Commit 77bc086

Browse files
change run_test scripts to use pytest. (#276)
* change run_test scripts to use pytest. * Fix meta.yml and update README. * banished junit.xml Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>
1 parent 2c622fa commit 77bc086

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ nosetests.xml
6363
coverage.xml
6464
*,cover
6565
.hypothesis/
66+
junit.xml
6667

6768
# Translations
6869
*.mo

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@ See tests in folder `dpctl/tests`.
106106

107107
Run tests:
108108
```bash
109-
python -m unittest dpctl.tests
109+
pytest --pyargs dpctl
110110
```

conda-recipe/meta.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ requirements:
2929
- python
3030
- numpy >=1.17
3131
- dpcpp_cpp_rt
32-
32+
test:
33+
requires:
34+
- pytest
35+
- pytest-cov
3336
about:
3437
home: https://github.com/IntelPython/dpCtl.git
3538
license: Apache-2.0

conda-recipe/run_test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ set ERRORLEVEL=
1111
"%PYTHON%" -c "import dpctl"
1212
IF %ERRORLEVEL% NEQ 0 exit /b 1
1313

14-
"%PYTHON%" -m unittest -v dpctl.tests
14+
pytest -q -ra --disable-warnings --pyargs dpctl -vv
1515
IF %ERRORLEVEL% NEQ 0 exit /b 1

conda-recipe/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -e
66
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh || true
77

88
${PYTHON} -c "import dpctl"
9-
${PYTHON} -m unittest -v dpctl.tests
9+
pytest -q -ra --disable-warnings --pyargs dpctl -vv

0 commit comments

Comments
 (0)