Comments (4)
Could you give me some more details? Versions and so on. I just cloned a fresh install of this repository, downloaded dependencies and run with and without the random order, and it worked just fine.
16:56:49 ~/dev/phpunit-randomizer [master] composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing sebastian/version (1.0.6)
Downloading: 100%
- Installing sebastian/global-state (1.1.1)
Downloading: 100%
- Installing sebastian/recursion-context (1.0.2)
Downloading: 100%
- Installing sebastian/exporter (1.2.1)
Downloading: 100%
- Installing sebastian/environment (1.3.5)
Downloading: 100%
- Installing sebastian/diff (1.4.1)
Downloading: 100%
- Installing sebastian/comparator (1.2.0)
Downloading: 100%
- Installing symfony/yaml (v3.0.4)
Downloading: 100%
- Installing doctrine/instantiator (1.0.5)
Downloading: 100%
- Installing phpdocumentor/reflection-docblock (2.0.4)
Downloading: 100%
- Installing phpspec/prophecy (v1.6.0)
Downloading: 100%
- Installing phpunit/php-text-template (1.2.1)
Downloading: 100%
- Installing phpunit/phpunit-mock-objects (2.3.8)
Downloading: 100%
- Installing phpunit/php-timer (1.0.7)
Downloading: 100%
- Installing phpunit/php-token-stream (1.4.8)
Downloading: 100%
- Installing phpunit/php-file-iterator (1.4.1)
Downloading: 100%
- Installing phpunit/php-code-coverage (2.2.4)
Downloading: 100%
- Installing phpunit/phpunit (4.8.24)
Downloading: 100%
sebastian/global-state suggests installing ext-uopz (*)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
16:58:21 ~/dev/phpunit-randomizer [master] ./bin/phpunit-randomizer example_tests
PHPUnit 4.8.24 by Sebastian Bergmann and contributors.
.ExampleTest::test1
.ExampleTest::test2
.ExampleTest::test3
.ExampleTest::test4
.ExampleTest::test5
.OtherExampleTest::test1
.OtherExampleTest::test2
.OtherExampleTest::test3
.OtherExampleTest::test4
.OtherExampleTest::test5
Time: 79 ms, Memory: 4.25Mb
OK (10 tests, 4 assertions)
With random order
17:02:10 ~/dev/phpunit-randomizer [master] ./bin/phpunit-randomizer --order rand example_tests
PHPUnit 4.8.24 by Sebastian Bergmann and contributors.
.OtherExampleTest::test2
.OtherExampleTest::test1
.OtherExampleTest::test3
.OtherExampleTest::test5
.OtherExampleTest::test4
.ExampleTest::test1
.ExampleTest::test4
.ExampleTest::test5
.ExampleTest::test3
.ExampleTest::test2
Time: 45 ms, Memory: 4.25Mb
OK (10 tests, 4 assertions)
Randomized with seed: 9438
With same seed
17:02:43 ~/dev/phpunit-randomizer [master •] ./bin/phpunit-randomizer --order rand:9438 example_tests
PHPUnit 4.8.24 by Sebastian Bergmann and contributors.
.OtherExampleTest::test2
.OtherExampleTest::test1
.OtherExampleTest::test3
.OtherExampleTest::test5
.OtherExampleTest::test4
.ExampleTest::test1
.ExampleTest::test4
.ExampleTest::test5
.ExampleTest::test3
.ExampleTest::test2
Time: 44 ms, Memory: 4.25Mb
OK (10 tests, 4 assertions)
Randomized with seed: 9438
17:03:12 ~/dev/phpunit-randomizer [master]
from phpunit-randomizer.
fiunchinho/phpunit-randomizer 2.0.2
from phpunit-randomizer.
I just tried against 2.0.2. No errors. Can you give me a way to reproduce the error? Like an example test.
from phpunit-randomizer.
Fixed via #17
from phpunit-randomizer.
Related Issues (11)
- Run again with same seed (randomized order) HOT 5
- Consider the @depends annotation HOT 1
- PHPUnit version
- PHPUnit 6.0 HOT 2
- Add a license
- option --order is ambiguous HOT 1
- Default to regular order, enable random with flag HOT 3
- You don't need this - There is a default PHPUnit feature --order-by=random HOT 2
- Adding the project to Packagist HOT 1
- setUpBeforeClass and tearDownAfterClass are not being executed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpunit-randomizer.