-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6982: Added ability to easily review summary of test results r=jmcameron a=jmcameron Adds a simplified way to print a summary of regression tests results. This PR also disables the broken protractor end-to-end tests. Note that this change copies the output of each test into a 'report' file in the respective test directories. The summary comes by grepping for relevant totals lines in each 'report' file. Note that this always shows the results from the current versions of the 'report' file, even if it is stale. Obviously this could be improved with a smarter script but this is a start. ### Testing - Use bhima_test - run 'yarn test' - Should print an abbreviated summary of the test results from all four tests. - Run 'yarn test:show-results' to see the results again (without running the tests) Co-authored-by: Jonathan Cameron <jmcameron@gmail.com>
- Loading branch information
Showing
6 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,8 @@ docs/.sass-cache/ | |
|
||
client/upload/ | ||
|
||
test/*/report | ||
|
||
migration-*.sql | ||
yarn-error.log | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo "TEST RESULTS SUMMARY" | ||
echo | ||
echo "Client Unit Tests" | ||
echo " " `grep "TOTAL" ./test/client-unit/report` | ||
echo | ||
echo "Client Unit Tests" | ||
echo " " `grep 'passing' ./test/server-unit/report` | ||
echo " " `grep 'failing' ./test/server-unit/report` | ||
echo | ||
echo "Integration Tests" | ||
echo " " `grep passing ./test/integration/report` | ||
echo " " `egrep -e '(failing|pending)' ./test/integration/report` | ||
echo | ||
echo "Stock Integration Tests" | ||
echo " " `grep passing ./test/integration-stock/report` | ||
echo " " `egrep -e '(failing|pending)' ./test/integration-stock/report` | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters