Testing api clients
Frank Mueller
frank.mueller at canonical.com
Thu Sep 11 07:38:53 UTC 2014
Nice. And I'm currently have a way to maipulate the registered facades.
Intention is to enable tests for servers running only a V(x) while the
client already reached V(x+1).
I'll describe both in the API Implementation Guide.
mue
On Thu, Sep 11, 2014 at 6: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
>
>
--
** Frank Mueller <frank.mueller at canonical.com>
** Software Engineer - Juju Development
** Canonical
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140911/0518d98a/attachment.html>
More information about the Juju-dev
mailing list