Skip to content

Commit

Permalink
Changes test command in azure-pipelines.yml to compute coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Mar 18, 2021
1 parent fa7dcd2 commit 947ccee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ steps:
#python -m pytest tests/*.py --cov=src --cov-report=xml --cov-report=html
#pytest tests/ --cov-config .coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
#echo "##vso[task.setvariable variable=PATH]${PATH}:$(Build.SourcesDirectory)/src/UQpy"
PYTHONPATH=src pytest tests/*.py --cov-config=.coveragerc --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
# PYTHONPATH=src pytest tests/*.py --cov-config=.coveragerc --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
PYTHONPATH=src pytest tests/*.py --cov=src tests/ --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Test with pytest'

Expand Down
2 changes: 0 additions & 2 deletions tests/Surrogates/test_PCE.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys
sys.path.append('../../../src/UQpy/')
from UQpy.Distributions import Uniform
from UQpy.Surrogates import *
import numpy as np
Expand Down

0 comments on commit 947ccee

Please sign in to comment.