
julian at mehnle
Dec 21, 2006, 11:14 AM
Post #7 of 16
(2168 views)
Permalink
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefano Bagnara wrote: > Norman Maurer wrote: > > I think I managed to run `mvn test`, but it produced too much debug > > output for me to read through. It also seemed to run a lot of other > > tests besides the official RFC 4408 test suite. > > I'm not sure, but you don't need to read the result. It is only debug > stuff. You just need to know that tests passes ;-) Well, then does the following SPF implementation pass the test suite, too? | #!/usr/bin/perl | { local $/; <> } | print("Test #$_: PASS\n") for 1..278; I'm not saying that you're trying to trick us, but a little less noise and a little more information would go a long way towards helping us see how well jSPF implements RFC 4408. > > Is there a way to disable the debug output (such as the internal > > warnings on SPF syntax errors, etc.) and the other, non-official tests > > and just get the official test results with the result produced by > > jSPF and some basic diagnostic output (such as result explanations and > > {Temp,Perm}Error messages)? > > No without changing the test code. > Why do you need this? > [...] > Test result is pass/fail. If it finish without errors then it passed all > the tests... For example, this is how the output of a Mail::SPF test script looks: http://julian.io.link-m.de/spf/mail-spf-rfc4408-tests.log > You can change the test class if you want some other output, but this is > not the goal of the unit-tests, so you shouldn't expect this from the > tests. I know that this is not the goal of the _unit_tests_. I am talking about a _different_ goal. Of course Mail::SPF uses a different method for automatic testing, too, but said test script has been very helpful to me when I reviewed the RFC comp- liance of Mail::SPF. > Btw you can run a single test with maven, something like this: > mvn test -Dtest=org.apache.james.jspf.RFC4408YamlTest Thanks for the tip. I will try it. > > BTW, Maven seems to have downloaded several packages during my first > > `mvn test` run, but I can't find where it put them. I'd like to get > > rid of them after the testing, so could you perhaps give me a hint > > where the stuff got downloaded to? I checked jSPF out to > > "D:\Storage\Temporary\jSPF \0.9b3" and ran `mvn test` in that same > > dir. > > Check for .m2 folder in your home directory. Found them there, thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFit0GwL7PKlBZWjsRAu3AAKCkMySRNIKLOFisD+xhbK9Z/97PSQCfZ8wy Tw2UOrJ0LMzk8LIZUSoh2/Y= =WHJO -----END PGP SIGNATURE----- ------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?list_id=1007
|