Skip to content

Commit

Permalink
update coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
BrikerMan committed Feb 24, 2019
1 parent 622229a commit e949bcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Expand Up @@ -12,6 +12,7 @@ exclude_lines =
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
raise ValueError

# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -6,9 +6,9 @@ cache: pip
# command to install dependencies
env:
- TEST_FILE=tests/test_classifier_models.py
- TEST_FILE=tests/test_seq_labeling_models.py
- TEST_FILE=tests/test_corpus.py
- TEST_FILE=tests/test_embeddings.py
- TEST_FILE=tests/test_seq_labeling_models.py
before_install:
- export BOTO_CONFIG=/dev/null
install:
Expand All @@ -19,7 +19,6 @@ install:
- pip install nose
# command to run tests
script:
# - sh test.sh
- nosetests --cover-erase --with-coverage --cover-html --cover-html-dir=htmlcov --cover-package="kashgari" $TEST_FILE
- nosetests --with-coverage --cover-html --cover-html-dir=htmlcov --cover-package="kashgari" $TEST_FILE
after_success:
- coveralls
4 changes: 2 additions & 2 deletions tests/test_classifier_models.py
Expand Up @@ -111,12 +111,12 @@ def tearDownClass(cls):
logging.info('tearDownClass {}'.format(cls))


class TestAllBLSTMModelModel(unittest.TestCase):
class TestAllCNNModelModel(unittest.TestCase):

@classmethod
def setUpClass(cls):
cls.epochs = 2
cls.model_class = BLSTMModel
cls.model_class = CNNModel
cls.model = cls.model_class()

def test_build(self):
Expand Down

0 comments on commit e949bcc

Please sign in to comment.