Skip to content

change run_test scripts to use pytest. #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 17, 2021
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 @@ -63,6 +63,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
junit.xml

# Translations
*.mo
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ See tests in folder `dpctl/tests`.

Run tests:
```bash
python -m unittest dpctl.tests
pytest --pyargs dpctl
```
5 changes: 4 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ requirements:
- python
- numpy >=1.17
- dpcpp_cpp_rt

test:
requires:
- pytest
- pytest-cov
about:
home: https://github.com/IntelPython/dpCtl.git
license: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/run_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ set ERRORLEVEL=
"%PYTHON%" -c "import dpctl"
IF %ERRORLEVEL% NEQ 0 exit /b 1

"%PYTHON%" -m unittest -v dpctl.tests
pytest -q -ra --disable-warnings --pyargs dpctl -vv
IF %ERRORLEVEL% NEQ 0 exit /b 1
2 changes: 1 addition & 1 deletion conda-recipe/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -e
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh || true

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