Code Monkey home page Code Monkey logo

Comments (8)

gfontenot avatar gfontenot commented on June 14, 2024

Fuck yes. I would like this very much.

from specta.

ashfurrow avatar ashfurrow commented on June 14, 2024

👍

from specta.

modocache avatar modocache commented on June 14, 2024

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.

robb avatar robb commented on June 14, 2024

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.

orta avatar orta commented on June 14, 2024

I think think a test launch argument probably makes the most sense

screen shot 2014-07-04 at 16 50 50

I'm happy for that to also shuffle the classes, the more shuffling the merrier IMO 👯

from specta.

petejkim avatar petejkim commented on June 14, 2024

will definitely add this to the todo list for 0.3

from specta.

orta avatar orta commented on June 14, 2024

http://treasure.diylol.com/uploads/post/image/513436/resized_all-the-things-meme-generator-add-all-the-features-137487.jpg

from specta.

petejkim avatar petejkim commented on June 14, 2024

implemented in bcba04d

from specta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.