-
Notifications
You must be signed in to change notification settings - Fork 19
First pass of a new API #12
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
Conversation
Also addresses #7 |
Sample syntax:
Hopefully this is a good starting point |
@kkozmic thoughts? |
I'll take that and convert the conventions I've got running at work to that API and see what feel it has to it. |
There's a lot here that I like. Especially the idea of shipping some pre-packaged conventions. I was struggling with integrating this into the old model. Now it seems to fit quite nicely. What I liked about the old model (although I think we need to change it in the new one) was the clean division of responsibility between the (base) convention class, and its associated ConventionData class. I think it might be a good idea to preserve this in some way for v2. I'd see this as having three main user facing actors:
In terms of how all of that relates to the old code, the Platform would contains most of the common code shared among the ConventionTest base classes, the ConventionData would be similar to the old ConventionData and the Convention would be the middle bit of the two running the logic and passing the results down to the Platform. Does that make sense? I'll pull in this PR and spike the idea on top of it. Looking forward to your ideas. |
Sounds good, I will wait to see your spike on top of it. Especially around the filters (notice the IRuntimeFilter or whatever it is), which allows you to filter types. It doesn't quite feel right, separating the convention and the convention data might make that nicer |
yeah, the |
This relates to issue TestStack#9, also see discussion under pull request TestStack#12 and TestStack#11
An attempt at the new api for #9