We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55d21e commit aa1799fCopy full SHA for aa1799f
test/test.sh
@@ -2,6 +2,11 @@
2
3
# Test helper script for jprops
4
#
5
+# Requires:
6
+# Python 2.7
7
+# Python Coverage (pip install coverage)
8
+# Java
9
+#
10
# Kishan Thomas <kishan.thomas@gmail.com>
11
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
26
JAVA_COUNT=$( expr $(wc -l java.props.out|awk '{ print $1}') - 2 )
27
PYTHON_COUNT=$( expr $(wc -l python.props.out|awk '{ print $1}') - 2 )
@@ -41,3 +46,5 @@ else
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
0 commit comments