-
Notifications
You must be signed in to change notification settings - Fork 122
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
Improve Harness deprecation warning to help charmers know what to do next #1503
Comments
@tmihoc and @dwilding would you suggest just linking to the docs, like:
Or would you include more? Or less, just one link? |
@tonyandrewmeyer I would do:
The how-to already links to the reference, so that should be fine. PS I'm a little confused by "state transition testing". The name of the ops module is just |
Yeah, it's quite annoying. Saying "Scenario" would work fine, but we got the word from up high that it's not to be used as a public name (using it as an internal code name is ok). I've removed most of the public references to "Scenario" already - the how-to guides have a PR open (I was waiting for the docs to move here, rather than do changes during the migration). If you find ones left we probably need to update them.
"State transition testing" is probably the most accurate description of what these tests are actually doing. It's a long name. "The ops testing harness" and variations of that don't really work because of Harness. "Unit tests" is our shorthand reference, and generally what we are trying to call these. That's why the old docs (yesterday 😉) titled the page "Unit testing (was Scenario)" but now the names are all the namespaces instead of descriptive. But you can say "write charm unit tests with Harness" but you can't say "write charm unit tests with unit tests". In time, our hope is people default to the new system (Scenario) and say "write charms tests with the ops unit testing framework" or similar. |
@tonyandrewmeyer Thanks for the context there. It's good for me to know even as I don't have any useful suggestion to offer at this time. |
I would only do 1 link vs 2. I think that link can be a good place to expand on other resources that people would want to look at. I also think the And I'm guessing the issue is that we didn't want to have ops.testing present at runtime for every charm, but we did want it as part of the namespace for charmers. (Offhand, I have to wonder if Anyway, I don't think using "Unit Testing" in the deprecation warning is sufficient, because it is Ops Unit Testing, or some top level caveat. I think just saying |
The deprecation warning for Harness says:
We should do a better job helping the charmer move forward from this. Just pointing to the docs is potentially enough (I don't think they were live when we added the warning). Maybe we also want to say to install
ops[testing]
, that the classes are still inops.testing
, and things like that as well.Pointed out by @jameinel in Matrix.
The text was updated successfully, but these errors were encountered: