-
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.
feat(server): verbose MySQL errors (#1521)
Previous versions of BHIMA avoided showing errors to the client, resulting in a large red bar with no context. This commit makes sure that we can at least echo the errors, as well as making sure the client sees something .. the raw MySQL error. This will help super users inform us what kind of errors they are seeing in the meantime. Additionally, it groups all tests under a new `test.sh` script so that the "Ctrl-C" interrupt works on unix-based systems to halt the tests.
- Loading branch information
Showing
4 changed files
with
40 additions
and
14 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
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,18 @@ | ||
#!/bin/bash | ||
|
||
# bash script mode | ||
set -euo pipefail | ||
|
||
# run lint tests | ||
./sh/lint.sh | ||
|
||
# run integration tests | ||
./sh/integration-tests.sh | ||
|
||
# run karma (client unit) tests | ||
./node_modules/.bin/karma start --single-run --no-auto-watch --concurrency 1 karma.conf.js | ||
|
||
# run end to end tests | ||
./sh/test-ends.sh | ||
|
||
exit 0; |