Skip to content

Commit

Permalink
Don't overwrite test results and code coverage (dbcli#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
pensivebrian authored Aug 23, 2019
1 parent c72a12b commit 8aef8a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import os
import sys
import uuid
import utility

# Environment variables below allow the build process to use a python interpreter and pip version different
Expand Down Expand Up @@ -119,8 +120,9 @@ def unit_test():
"""
Run all unit tests.
"""
runid = str(uuid.uuid1())
utility.exec_command(
'pytest --cov mssqlcli --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html '
'pytest --cov mssqlcli --doctest-modules --junitxml=junit/test-{}-results.xml --cov-report=xml --cov-report=html --cov-append '
'tests/test_mssqlcliclient.py '
'tests/test_completion_refresher.py '
'tests/test_config.py '
Expand All @@ -133,7 +135,7 @@ def unit_test():
'mssqlcli/jsonrpc/tests '
'mssqlcli/jsonrpc/contracts/tests '
'tests/test_telemetry.py '
'tests/test_special.py',
'tests/test_special.py'.format(runid),
utility.ROOT_DIR,
continue_on_error=False)

Expand Down

0 comments on commit 8aef8a5

Please sign in to comment.