On Mon, Jul 20, 2015 at 3:05 PM roger peppe <[email protected]>
wrote:

> On 20 July 2015 at 19:41, Nate Finch <[email protected]> wrote:
> > You should be able to get to 80% code coverage (and near 100% logic
> coverage)
> > without using anything outside your package.
>
> Shouldn't those numbers be the other way around? I don't see how
> you could possibly get to ~100% of logic coverage if only 80%
> of the code is covered.
>

Yes, you're right, any runnable code is logic.  But there's often some
uninteresting glue code that is not really the meat of the logic, that may
be hard to test and unlikely to break.  I guess that's really too vague as
a guideline, though.  My point is - you should be able to test most of your
code without having to spin up a server - even a fake test server.
-- 
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to