oh!! yes, I have same problem :(
argvs = ["nosetest",
"--verbosity=2",
"--with-xunit",
"--with-id"]
my_suite = nose.loader.TestLoader().discover('test_suites',pattern='*.py')
result = nose.run(my_suite, argv=argvs)
run ALL TESTS IN ALL FOLDERS, not only from test_suites
nosetests.xml - is CORRECT
-------------------------------
my_suite = nose.loader.TestLoader().discover('test_suites',pattern='*.py')
result = nose.run(argv=argvs, suite=my_suite)
run tests only from test_suites, but nosetests.xm is empty:
from testSuite import Test1
class ApplianceTestSuite(unittest.TestCase):
def test_suite(self):
tests_loaded = TestLoader().loadTestsFromName(<>)
#`run(suite=tests_loaded)
nose is executing all the tests from testSuite module before entering test_suite function... anyway to make nose avoid executing tests from testSuite...
Thanks,
when I specify run(suite=test_suite, argv=argvs), nose is executing but nosetests.xml is screwed..
not sure.. what is the right way...
/opt/tools/bin/nosetests --nocapture --nologcapture --with-xunit --<another flag to stop auto-discovery>
Thank you once again,
--
You received this message because you are subscribed to the Google Groups "nose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nose-users+...@googlegroups.com.
To post to this group, send email to nose-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nose-users.
For more options, visit https://groups.google.com/d/optout.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________