Skip to content

Commit 628cf08

Browse files
taehoonleefchollet
authored andcommitted
Increase test coverage (keras-team#9182)
* Increase test coverage * Remove excluding __repr__ * Update `fail_under`
1 parent b574263 commit 628cf08

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.coveragerc

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
[report]
2-
fail_under = 84
2+
# Regexes for lines to exclude from consideration
3+
exclude_lines =
4+
# Don't complain if tests don't hit defensive assertion code:
5+
raise ImportError
6+
raise NotImplementedError
7+
8+
fail_under = 85
39
show_missing = True
410
omit =
511
keras/applications/*
612
keras/datasets/*
13+
keras/legacy/layers.py

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ script:
111111
elif [[ "$TEST_MODE" == "DOC" ]]; then
112112
PYTHONPATH=$PWD:$PYTHONPATH py.test tests/test_documentation.py;
113113
else
114-
PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests --ignore=tests/test_documentation.py --cov-config .coveragerc --cov=keras tests/;
114+
PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests --ignore=tests/test_documentation.py --ignore=tests/keras/legacy/layers_test.py --cov-config .coveragerc --cov=keras tests/;
115115
fi

0 commit comments

Comments
 (0)