mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-12 07:18:23 +01:00
Integrate unitests to codeclimate
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
languages:
|
||||
Python: true
|
||||
|
||||
exclude_paths:
|
||||
- tests/
|
||||
@@ -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):
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
class TestGitWrapper(TestCase):
|
||||
def test1(self):
|
||||
pass
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
python -m unittest discover --pattern=*.py
|
||||
coverage report --include 'neatlynx*'
|
||||
CODECLIMATE_REPO_TOKEN=a668a3d02db00ab993ad82e1b3d5d2eb00c3c2e26e659153ae4cfd2f12aaad23 codeclimate-test-reporter --include 'neatlynx*'
|
||||
Reference in New Issue
Block a user