In Ritchie CLI context, Unit tests are the way of testing a part of your formula implementation.
Some of the formula templates - Java and Golang - currently have a Test class to write and run the formula unit tests.
You can also configure your CI/CD and release processes to run those tests after each formula update or addition.
Ritchie’s team recently developed a Github action to test CLI commands outputs. Check the Github repository test-cli-commands-action.
Ritchie CLI uses this action to make sure the CLI core commands behave as expected after updating the files related to them.
When you use this action, you can check different implementation scenarios through the formulas outputs, according to the formulas inputs. You can run the tests only when you update a file from the formula directory.
For more information about actions, check out the Github Marketplace page or the How to test formulas tutorial.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.