cmheisel / nose-xcover

Fork of nose.plugins.cover that enables XML output (for use with Hudson, e.g.)
MIT License
52 stars 17 forks source link

Unable to Use --with-xcover? #8

Closed rdegges closed 13 years ago

rdegges commented 13 years ago

Hi there,

I'm setting up a fresh testing environment for my Django project, and I'm getting the following error when running my tests:

ERROR: You can not use both --with-xcover and --with-coverage. Using --with-xcover implies --with-coverage

I'm currently running my tests with the following nose options:

nosetests --verbosity 1 --with-xunit --cover-erase --cover-package=accounts,api,calls,callers,partyliners,rooms,reports --with-xcover

Which, as you can see, does NOT specify the --with-coverage flag that I'm getting in the error message. I'd love to get this working so I can get some sexy looking graphs in my Jenkins install :) Any suggestions?

cyberdelia commented 13 years ago

Use --with-xcoverage options, read the README about the details.

rdegges commented 13 years ago

Well, both --with-xcover and --with-xcoverage result in the same error. Here's the command I'm running now (I've read the README, but it isn't helping :o)

nosetests --verbosity 1 --with-xunit --with-xcoverage --cover-erase --cover-package=accounts,api,calls,callers,partyliners,rooms,reports

See, I'm doing --with-xcoverage in there, and NO --with-coverage.

cyberdelia commented 13 years ago

Do you have a .nosercor nose.cfg with with-coverage ?

rdegges commented 13 years ago

@cyberdelia, oh man. I had a ~/.noserc setup with --with-coverage=1 from way back when, and totally forgot about it. Sorry for the trouble, noob mistake! Works great now :)