in reply to Re^6: swat on CPAN
in thread swat on CPAN

Just pointing out one of the many fundamental flaws in your solution. You do not wrap prove on behalf of the client. You instead produce test files and let the client choose the driver that runs the tests through the harness. "Why one need to disable this?" Again, the best CPAN modules allow the client to configure what they want.

Replies are listed 'Best First'.
Re^8: swat on CPAN
by melezhik (Monk) on Jul 17, 2015 at 19:50 UTC
    Yeah. And what this flaws is ?
    > Again, the best CPAN modules allow the client to configure what they want.
    The same with swat. _You_ define,control _what_ parameters prove will be called and so what output you will be given, or I miss something?
      Would you provide a working example that shows the output in TAP?
        Yes of course. :)
        $  swat examples/google/ google.ru
        /home/vagrant/.swat/reports/google.ru/00.t ..
        # start swat for google.ru//
        # try num 2
        ok 1 - successfull response from GET google.ru/
        # data file: /home/vagrant/.swat/reports/google.ru///content.GET.txt
        ok 2 - GET / returns 200 OK
        ok 3 - GET / returns Google
        1..3
        ok
        All tests successful.
        Files=1, Tests=3, 12 wallclock secs ( 0.00 usr  0.00 sys +  0.02 cusr  0.00 csys =  0.02 CPU)
        Result: PASS
        
        And the are more on https://github.com/melezhik/swat/tree/master/examples