File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Test helper script for jprops
4
4
#
5
+ # Requires:
6
+ # Python 2.7
7
+ # Python Coverage (pip install coverage)
8
+ # Java
9
+ #
5
10
# Kishan Thomas <kishan.thomas@gmail.com>
6
11
7
12
RED=' \033[0;31m'
@@ -16,7 +21,7 @@ javac Test.java
16
21
java Test > java.props.out
17
22
# Use Python jprops and get all the properties ordered by key from test.properties
18
23
# python test.py > python.props.out
19
- python test.py > python.props.out
24
+ coverage run test.py > python.props.out
20
25
21
26
JAVA_COUNT=$( expr $( wc -l java.props.out| awk ' { print $1}' ) - 2 )
22
27
PYTHON_COUNT=$( expr $( wc -l python.props.out| awk ' { print $1}' ) - 2 )
41
46
echo -e " ${RED} Test Fail: Not all $JAVA_COUNT properties match${NC} "
42
47
exit 1
43
48
fi
49
+ coverage report -m
50
+ coverage html
You can’t perform that action at this time.
0 commit comments