-
Notifications
You must be signed in to change notification settings - Fork 6
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
Command tests #15
Comments
Removed |
@seaneagan, Instead of hardcoding every testing case, I want to intelligently autogenerate them. I've been working on Briefly described, I imagine a σ-algebra set of possible arguments (flags, options and rest) and an expectancy set of outcomes. The testing set is a subset of this σ-algebra. For example for Let R be the set of rest arguments: Let O be the set of options: Let F be the set of flags: Let E be the expectancy set of pubspec outcomes: The resulting testing set σ-algebra on R, O, and F would be I don't know how to express this in set theory but I imagine also excluding the following cases, for example, as they are impossible:
|
@damondouglas |
So for example you would want to unit test |
@seaneagan , Next week I will provide my first PR for this. Just letting you know I'm still active and excited to work on this. |
@seaneagan , I'm struggling with executing unittests with async methods. I need to step away for a while and come back with a fresh mind. |
@seaneagan , I finally figured out how to test within an async context. At some point I am going to do another PR. Meanwhile, please see my progress: https://github.com/damondouglas/den/tree/master/test |
Create unittests for commands:
The text was updated successfully, but these errors were encountered: