вс, 26 янв. 2020 г. в 23:12, William Dauchy <w.dau...@criteo.com>:

> On Sun, Jan 26, 2020 at 7:08 PM Илья Шипицин <chipits...@gmail.com> wrote:
> > such things are fragile.  once fixed, they can silently break during
> further refactoring.
> > on other hand, such functions are good candidates to write unit tests.
>
> I considered it but to my knowledge, this is currently not possible
> with varnishtest, as we would need to mock a dns resolution, and make
> haproxy starts. I don't know whether there are other plans for haproxy
> tests.
>


I do not mean varnishtest here.

varnishtest is "full stack functional test", it is too expensive.

I mean lightweight unit testing, for example, cmocka.


> --
> William
>

Reply via email to