Skip to content

Commit

Permalink
Add unittest based unit-tests. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberon00 authored Jul 12, 2019
1 parent ab563ee commit c1ee8c7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipsdist = True
envlist = py37-{lint,mypy}, docs
envlist = py37-{lint,mypy,test}, docs

[travis]
python =
Expand All @@ -11,10 +11,23 @@ deps =
lint: pylint~=2.3.1
mypy: mypy~=0.711

setenv =
PYTHONPATH={toxinidir}/opentelemetry-api/src/
mypy: MYPYPATH={env:PYTHONPATH}

changedir =
test: opentelemetry-api/tests


commands =
py37-lint: pylint opentelemetry-api/src/opentelemetry/
; Prefer putting everything in one pylint command to profit from duplication
; warnings.
py37-lint: pylint opentelemetry-api/src/opentelemetry/ opentelemetry-api/tests/
py37-mypy: mypy opentelemetry-api/src/opentelemetry/
; For test code, we don't want to use the full mypy strictness, so we use its
; default flags instead.
py37-mypy: mypy opentelemetry-api/tests/ --config-file=
test: python -m unittest discover

[testenv:docs]
deps =
Expand Down

0 comments on commit c1ee8c7

Please sign in to comment.