Problem today
test.sh is growing today and will not be particularly clean when more commands are added.
Proposal
Use any testing framework to make it easier to add more cases. I could think of two ways:
- We stick with
bash and use https://github.com/bats-core/bats-core
- Migrate to pytest and use
subprocess to call the spin commands
While the first method would probably be less code in the long term, it might not be as powerful as pytest. Parametrizing for instance would be easier.
I'd be happy to raise a PR to move to either or feel free to close this issue if we are ok to keep what we have for now.
ToDo
Problem today
test.sh is growing today and will not be particularly clean when more commands are added.
Proposal
Use any testing framework to make it easier to add more cases. I could think of two ways:
bashand use https://github.com/bats-core/bats-coresubprocessto call the spin commandsWhile the first method would probably be less code in the long term, it might not be as powerful as pytest. Parametrizing for instance would be easier.
I'd be happy to raise a PR to move to either or feel free to close this issue if we are ok to keep what we have for now.
ToDo
--versionbuildtestPYTHONPATHbased testsdocsgdbtest.shtest.sh