Posted by sun on May 3, 2012 at 11:08pm
|Issue tags:||Testing system|
- Maintainers and developers are confused about varying positive test assertion counts for patches passing tests.
- Ensure that assertion counts can be trusted.
- Running the same test suite on the same machine can yield a difference of hundreds assertions.
- The difference is caused by various tests that use
rand(1, 10)for their initial setup (which means that test assertions are exponentially increasing for each additional item).
- Remove all calls to
rand()from all tests.