-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Randomize unittest.TestCase test order plugin #31
Comments
0.11 is near release, so the chances of this getting in are very slim. It would be better -- and is generally better Google Code Info: |
I installed the randomize plugin on my Debian Linux system (Python 2.5.4) with nose When I ran my tests from a bash command line using "nosetests --randomize" it printed When I ran my tests from the same command line using --with-xunit, it created When I ran my tests from the same command line with --with-xunit --randomize, it Are there known conflicts between the randomize plugin and the xunit plugin? Also, I intentionally inserted a failure into one of my tests so I could watch where I was also surprised to see (in my installation) that --with-randomize did not report Google Code Info: |
I think I may have now grasped my misunderstanding of what is actually being It appears the randomization happens within a test class, but the order in which test I created two files, test_one.py and test_two.py with tests in each of those files, Have I understood correctly that randomize is varying the order of tests within a Google Code Info: |
It would have helped if I'd read the doc comment prominently places at the top of Google Code Info: |
I think randomizing the order of test classes should be just as easy to implement as Google Code Info: |
Since discovering that I have some order-dependent failures in my test suite, I would be very interested in this plugin, provided it randomly orders all tests, and not just within a class. Was any progress made on that front? Google Code Info: |
How about:
|
I had to modify the original code posted @ Google code in order to work with:
Uploaded the latest version to gist: https://gist.github.com/3844715 , installing should be as easy as downloading the two files to the same location and then running "sudo python setup_randomize.py install". |
Improvement needed for randomize plugin: Work well with "--with-id". After some tests I found out that when "--randomize" is used, tests are not identified:
vs.
Not sure if this is an error in randomize or "id" plugin, but should be fixed before releasing the randomize plugin. |
've written a plugin that randomizes the test order of tests built with the
unittest.TestCase framework. I've attached the plugin, a setup file for
installation, and a patch against nose Version: 0.11.0.dev-r635. The patch
is somewhat relase agnostic as it just adds files, including a test.
The usage is --randomize
The seed is printed at the start so that failures can be replicated in a
deterministic way with --randomize --seed=
Comments/corrections welcome
Google Code Info:
Issue #: 255
Author: [email protected]
Created On: 2009-04-25T17:16:34.000Z
Closed On:
The text was updated successfully, but these errors were encountered: