Skip to content

Commit

Permalink
Add Tox Env for Internationalization Testing (#532)
Browse files Browse the repository at this point in the history
* add internationalization test

* address comments
  • Loading branch information
charitylxy authored Mar 7, 2024
1 parent 2c18e56 commit c0e4716
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[tox]
isolated_build = true
envlist = clean, py{38,39,310,311,312}-base, py{38,39,310,311,312}-grpc, report, docs
envlist = clean, py{38,39,310,311,312}-base, py{38,39,310,311,312}-grpc, py39-base-nicaiu, py39-base-nicai_utf8, report, docs

[testenv]
skip_install = true
Expand All @@ -15,9 +15,15 @@ setenv =
grpc: INSTALL_OPTS=--only main,test --extras grpc
base: PYTEST_OPTS=-k "not grpc"
grpc: PYTEST_OPTS=
nicaiu: NIDAQMX_C_LIBRARY=nicaiu
nicai_utf8: NIDAQMX_C_LIBRARY=nicai_utf8
platform =
nicaiu: win32
nicai_utf8: win32
commands =
poetry run python --version
poetry install -v {env:INSTALL_OPTS}
poetry run python -c "from nidaqmx._lib import lib_importer; print(f'Library: {lib_importer.windll._library._name}\nLibrary encoding: {lib_importer.encoding}')"
poetry run pytest --quiet --cov=generated/nidaqmx --cov-append --cov-report= --junitxml=test_results/system-{envname}.xml {env:PYTEST_OPTS} {posargs}

[testenv:clean]
Expand Down

0 comments on commit c0e4716

Please sign in to comment.