Skip to content

Commit

Permalink
v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bdiptesh committed Feb 15, 2024
1 parent bd3bb33 commit 1cd2112
Show file tree
Hide file tree
Showing 22 changed files with 10,812 additions and 103 deletions.
Binary file not shown.
Binary file not shown.
Binary file removed bin/metrics/metrics.so
Binary file not shown.
10 changes: 6 additions & 4 deletions bin/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ printf "=%.0s" {1..70}
# Run unit tests
if [[ $module == "-a" || $module == "-u" ]]
then
printf "\nRunning unit & integration tests ...\n\n"
coverage run -m unittest discover -v -s $test_dir -p "test_*.py"
coverage report -m --omit="*/tests/test_*,*/opt/spark-*" > "$proj_dir/logs/cov.out"
printf "\nComputing test coverage ...\n\n"
coverage report -m --omit="*/tests/test_*,*/opt/spark-*" 2>&1 | tee "$proj_dir/logs/cov.out"
COV_SCORE=`grep "TOTAL" $proj_dir/logs/cov.out | tail -1 | awk '{ printf("%d", $4) }'`
COV_COLOR="red"
if [[ $COV_SCORE == "100" ]]
Expand All @@ -43,6 +42,9 @@ then
sed -i "3s/.*/\[\!\[Coverage score\]\(\https\:\/\/img\.shields\.io\/badge\/coverage\-$COV_SCORE\%25\-$COV_COLOR.svg\)\]\(\.\/logs\/cov\.out\)/" "$proj_dir/README.md"
printf "=%.0s" {1..70}
printf "\n"
printf "\nRunning unit & integration tests ...\n\n"
coverage run -m unittest discover -v -s $test_dir -p "test_*.py"
printf "=%.0s" {1..70}
fi

# Rate coding styles for all python scripts
Expand Down Expand Up @@ -76,6 +78,6 @@ then
printf "\n"
fi

pipreqs --force $proj_dir &> $proj_dir/logs/pip.out
pipreqs --force --use-local $proj_dir &> $proj_dir/logs/pip.out

exit 0
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 1cd2112

Please sign in to comment.