Comments (8)
Fuck yes. I would like this very much.
from specta.
from specta.
XCTest has full control over the order in which test case subclasses (i.e.: Specta specs) are executed. However, Specta should be able to randomize the order of the individual examples defined by those subclasses by shuffling the invocations returned by +[SPTXCTestCase testInvocations]
.
This shuffling should help catch examples that depend on previous examples in the same spec class. But it won't help to find examples that depend on examples in other spec classes.
It might be possible to shuffle the spec classes themselves by shuffling the classes returned by the swizzled +[XCTestCase xct_allSubclasses]
method--which I believe was made public as of Xcode 6.
One question, @orta: you can randomize examples in RSpec using command line arguments: rspec --order random
. How would you want to randomize examples in Specta? Command line arguments as well?
from specta.
Would it make sense to have the random generator seed be an (optional) argument as well? That way, you could replay a specific permutation to verify you fixed your inter-test dependencies.
from specta.
I think think a test launch argument probably makes the most sense
I'm happy for that to also shuffle the classes, the more shuffling the merrier IMO
from specta.
will definitely add this to the todo list for 0.3
from specta.
from specta.
implemented in bcba04d
from specta.
Related Issues (20)
- Test results intermittently disappear in the Xcode 7 UI HOT 18
- Test results "arrow button" in Xcode 7 doesn't work correctly for Specta test results HOT 1
- Carthage Binaries HOT 4
- waitUntil hangs when using Specta in XCTest UI Test target HOT 9
- Specta getting stuck when trying to dispatch_sync in the main queue HOT 4
- XCTool support? HOT 14
- Specta fails to build when targeting tvOS HOT 2
- Add watchos support HOT 4
- Hierarchical test results HOT 1
- Cannot build with `rake` on 7.2 <= Xcode < 7.3 on Yosemite and El Cap
- WaitUntil and WaitUntilTimeOut leads to EXC_BAD_ACCESSS HOT 1
- It would be nice if specta had an option to reset the app after each test file completes HOT 1
- Repeating Unit-Tests
- Should fit/fdescribe have other tests show up as pending/failing?
- Tests are skipped nondeterministically
- signal SIGABRT at waiUntilTimeOut function
- No visible @interface for 'XCTestSuite' declares the selector 'run' HOT 5
- Bad access in SPTSharedExampleGroups
- iiccoinsss
- Expecta/EXPDefines.h
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 specta.