Descriptionstate: more expressive testing proposal
This shouldn't go in on its own -- I should fix up the rest of the state
tests before I merge it (and I don't want to fix machine_test until we've
dropped the orgiginal WatchPrincipalUnits implementation) but I think that
AssignSuite was a good enough test bed to evaluate the sanity of this
approach.
In particular, I found that even a few lines saved here and there made it
much easier to follow the tests, and to notice both redundant tests and
missing ones; and that in some cases a *lot* of lines were saved.
I'm not sure AssignSuite uses all the new ConnSuite features yet (they were
originally written against machine_test, but then I got demoralised) but I'm
pretty sure that they will be useful; if not, of course, I'll trash them.
https://code.launchpad.net/~fwereade/juju-core/strawman-state-test-simplification/+merge/138465
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 13
MessagesTotal messages: 10
|