Skip to content

Commit 438284b

Browse files
committed
chore(automation): add coverage in test.sh
1 parent 4665c41 commit 438284b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MiniGo/src/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ case "$1" in
7474
echo "<<< RUNNING ALL TESTS >>>"
7575
echo ""
7676
echo "Running lexical analysis tests..."
77-
python main.py test LexerSuite
77+
coverage run --append main.py test LexerSuite
7878
echo ""
7979
echo "Running syntax analysis tests..."
80-
python main.py test ParserSuite
80+
coverage run --append main.py test ParserSuite
8181
echo ""
8282
echo "Running AST generation tests..."
83-
python main.py test ASTGenSuite
83+
coverage run --append main.py test ASTGenSuite
8484
echo ""
8585
echo "Running semantic analysis tests..."
86-
python main.py test CheckSuite
86+
coverage run --append main.py test CheckSuite
8787
echo ""
8888
;;
8989
clean)

0 commit comments

Comments
 (0)