Integrate unitests to codeclimate

This commit is contained in:
Dmitry Petrov
2017-03-16 21:25:51 -07:00
parent 9e47af4602
commit b68dfef49a
4 changed files with 15 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
languages:
Python: true
exclude_paths:
- tests/
+6 -2
View File
@@ -17,11 +17,15 @@ class BasicDataDirTest(TestCase):
if curr_dir:
self._curr_dir = os.path.realpath(curr_dir)
os.makedirs(self._curr_dir, exist_ok=True)
else:
self._curr_dir = self._test_git_dir
os.makedirs(self._test_git_dir, exist_ok=True)
if not os.path.exists(self._curr_dir):
os.makedirs(self._curr_dir)
if not os.path.isdir(self._test_git_dir):
os.makedirs(self._test_git_dir)
os.chdir(self._curr_dir)
def tearDown(self):
-6
View File
@@ -1,6 +0,0 @@
from unittest import TestCase
class TestGitWrapper(TestCase):
def test1(self):
pass
Executable
+4
View File
@@ -0,0 +1,4 @@
python -m unittest discover --pattern=*.py
coverage report --include 'neatlynx*'
CODECLIMATE_REPO_TOKEN=a668a3d02db00ab993ad82e1b3d5d2eb00c3c2e26e659153ae4cfd2f12aaad23 codeclimate-test-reporter --include 'neatlynx*'