Bash refactor to allow for tests #30

Open
opened 2024-03-11 04:10:42 +00:00 by AaronFiore · 0 comments
AaronFiore commented 2024-03-11 04:10:42 +00:00 (Migrated from gitea.com)

Whew...

With the joy of Bash comes the joy of creative problem solving. And while a testing solution is not straightforward, it's possible.

With most shell languages, the convenience of global variable scope comes at the cost of ignoring function arguments. So, fully addressing that is a good start.

From there, functions can be tested as needed.

As for preprocess testing, the mockups largely serve as the test framework 🤷‍♂️

Whew... With the joy of Bash comes the joy of creative problem solving. And while a testing solution is not straightforward, it's possible. With most shell languages, the convenience of global variable scope comes at the cost of ignoring function arguments. So, fully addressing that is a good start. From there, functions can be tested as needed. As for `preprocess` testing, the mockups largely serve as the test framework 🤷‍♂️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: EvergreenCrypto/docker-finance#30