-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functional tests #93
Comments
I looked into this and I think it'd make sense to decouple the command tasks from the actual command implementations. For example, if we'd wanna write a test for Would you be okay with that? |
Do you mean the individual tasks or the command tasks? Most of the commands export their It would be great to see how what you have in mind would look like, just an example of how a small command would change to allow this would be great |
Exactly. Even that however would mean, one either tests the whole task list as a whole or nothing, unless one can access specific tasks from that list (not super familiar with the TaskList API yet). So in my head a command could look like this:
Basically where I'm trying to get is a setup where for example the This is also not a solution to the problem, more a "how about we go this way for now, instead of not having any tests at all" Hope this makes sense! |
I'm definitely a fan of how pando's structured their cli code, that sounds similar to what you're suggesting @PascalPrecht. |
Yes, that's kind of what I had in mind. Thing is just that I'll give it more thought. |
Here's a WIP POC, just to get out the idea: #168 |
Any updates on this currently? Getting tests into CLI is going to be a priority for us soon. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for contributing to Aragon! 🦅 |
Given the increased complexity with new features, modifying a command can have side-effects in other commands that rely on it.
My proposal is that the initial test suite for the CLI should have a bunch of tests that interact with the CLI directly. Then each test case would pass if, it exits without an error and the side-effects of the command are what was expected (e.g. check the chain to see if a DAO or APM package is at the correct state, or check artifacts against the expected state)
The text was updated successfully, but these errors were encountered: