-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

First; I agree with binaris - "nice work!" indeed! thanks for that!

Now the "but" part; could you explain me how to use the 'nosetests'
with 'coverage'?

Using 'nosetests' from 'pywikipedia' trunk directory yield 5 times

"ERROR: Failure: AttributeError (StringIO instance has no attribute
'encoding')"

and I was not able to use the coverage and produce e.g. html output...

The reason why I am asking; I would like to understand nose and use
it for DrTrigonBot code parts also (in order to adopt to pywikipedia).

Thanks a lot and Greetings
DrTrigon


On 21.01.2012 18:33, Merlijn van Deen wrote:
> On 15 January 2012 01:16, Merlijn van Deen <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> In some spare time, I hacked together an automated test runner
> (...)
> 
> The results are available at:
> http://toolserver.org/~pywikipedia/nightly/testing/test_pywikipedia.txt
> (and in xunit format, if anyone prefers that).
> 
> 
> Anyone who checked the output will have noticed there were a lot
> of tests failing. I fixed this today by removing tests (such as the
> ones that required user input) or broken code (such as a bit of
> code from date.py).
> 
> In addition, I created a nosetests configuration file, allowing
> anyone to quickly run tests by typing 'nosetests' in the pwb root
> directory (you might need to pip install nose first).
> 
> As a bonus, we now also have coverage reports - and they are not as
> bad as I expected! Feel free to browse around
> http://toolserver.org/~pywikipedia/nightly/testing/coverage/ .
> 
> Best, Merlijn
> 
> 
> _______________________________________________ Pywikipedia-l
> mailing list [email protected] 
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8/g0QACgkQAXWvBxzBrDDhJQCgoBoxps+fBWMYTPrStwSbudmn
YDcAoMxIHk5ehRwA5F3GdLFGCj7YBxh9
=sIuu
-----END PGP SIGNATURE-----

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to