Testing api clients
Matthew Williams
matthew.williams at canonical.com
Thu Sep 11 10:30:24 UTC 2014
Thanks Andrew,
I was almost about to reimplement this myself - making use of it right now
Thanks
Matty
On Thu, Sep 11, 2014 at 5:57 AM, Andrew Wilkins <
andrew.wilkins at canonical.com> wrote:
> Hi folks,
>
> I'd like to bring a small, recent addition to everyone's attention:
> https://github.com/juju/juju/blob/master/api/base/testing/patch.go
>
> PatchFacadeCaller can be used (and is used now in several places) to avoid
> calling through to a real API server in api tests. Ideally we'd just
> provide mock FacadeCallers to begin with, but this alleviates some of the
> pain between now and when we do that across all the existing tests.
>
> If you're writing tests for api clients, please consider using
> PatchFacadeCaller or a mock FacadeCaller, so we can improve test coverage
> and avoid slow tests.
>
> Cheers,
> Andrew
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140911/3d5a6cd8/attachment-0001.html>
More information about the Juju-dev
mailing list