Extend test.sh
mszulcz-mitre opened this issue · comments
mszulcz-mitre commented
The script opencbdc-tx/scripts/test.sh
runs integration and unit tests and measures test coverage. It has a few limitations:
- It must be run from the top-level folder in the repo (
opencbdc-tx/
). - It assumes the build directory is called
build
and is located in the top-level folder of the repo (i.e.opencbdc-tx/build
). - It always runs unit and integration tests and measures coverage.
I think it could be improved by:
- Allowing the user to run it from any folder.
- Allowing the user the option of defining the build folder as a command-line argument.
- Allowing the user to choose via command-line arguments which tests to run (e.g. unit tests, integration tests, or both) and whether to measure coverage.
I think these changes can be made easily and can preserve backward compatibility (e.g. running the modified script with no command-line arguments would do what the script currently does).