Skip to content

Commit

Permalink
Moved coverage and test results to the ./.tests/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tabo committed Dec 29, 2015
1 parent 0ada5f4 commit 9a7d311
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Expand Up @@ -2,6 +2,7 @@
branch = True
source = treebeard
parallel = True
data_file = .tests/coverage

[paths]
source =
Expand Down
3 changes: 1 addition & 2 deletions .hgignore
Expand Up @@ -2,6 +2,7 @@ syntax: glob

.DS_Store
.buildinfo
.tests
*.pyc
*.orig
*.swp
Expand All @@ -15,6 +16,4 @@ MANIFEST
.settings
htmlcov
.tox
*.xml
.coverage.*
*.egg-info
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -41,5 +41,5 @@ setenv =
DUMMY_VAR_TO_MAKE_TOX_HAPPY=tox
commands =
{envpython} treebeard/tests/jenkins/toxhelper.py \
--tb=long --fulltrace -l --junitxml junit-{envname}.xml \
--tb=long --fulltrace -l --junitxml .tests/junit-{envname}.xml \
{posargs}
4 changes: 4 additions & 0 deletions treebeard/tests/jenkins/toxhelper.py
Expand Up @@ -10,12 +10,16 @@
import sys

import os
import os.path
import pytest

from coverage import coverage


def run_the_tests():
tests_dir = os.path.join(os.path.dirname(__file__), "../../../.tests")
if not os.path.isdir(tests_dir):
os.mkdir(tests_dir)
if 'TOX_DB' in os.environ:
os.environ['DATABASE_HOST'], os.environ['DATABASE_PORT'] = {
'pgsql': ('dummy_test_database_server', '5434'),
Expand Down

0 comments on commit 9a7d311

Please sign in to comment.