Git Product home page Git Product logo

Comments (8)

kytrinyx avatar kytrinyx commented on June 25, 2024

@hankturowski How have you been running the test suites?

from swift.

hankturowski avatar hankturowski commented on June 25, 2024

Thus far I've only run the tests using the Xcode6 GUI.

from swift.

ahalls avatar ahalls commented on June 25, 2024

I too have been building an Xcode6 project and coding and test from the GUI. I liked the test runner created for objective-C in Ruby by burtlo. Seems like Xcode6 is even more CLI friendly. I'll look into seeing if I can create a CLI test runner for Swift.

from swift.

montlebalm avatar montlebalm commented on June 25, 2024

Any progress on this @ahalls? I've been looking into running XCTests from the CLI, but I haven't made much progress.

from swift.

hankturowski avatar hankturowski commented on June 25, 2024

Swift 2.0 was just announced at WWDC and Xcode 7 is around the corner. We should probably put this on hold until they go gold.

Additionally, Swift will be open source with a Linux port at some point in the not too distant future. I assume that that will mean that command line testing will be much easier.

from swift.

masters3d avatar masters3d commented on June 25, 2024

Im going to close this for now. We can revisit this when swift is stable in Linux.

from swift.

masters3d avatar masters3d commented on June 25, 2024

In swift 2.2 we now have the option to use the pure swift implementation of swift. https://github.com/apple/swift-corelibs-xctest

Some limitations: https://github.com/apple/swift-corelibs-xctest#additional-considerations-for-swift-on-linux

We need to manual add all the test to
var allTests : [(String, () -> Void)] {}

We can handle this with a script
https://gist.github.com/briancroom/e2c22f162f8ba5211e31

Then all we would need to do is to call this with all the Test classes.

``XCTMain([BobTest(), Problem3Test(), ETCTest()])`

Live example with 2.2:

http://swiftlang.ng.bluemix.net/#/repl/b0d680996ae5506a06be941e7b1e642665ee35e51b0c216cb6d6f13957e18e41

from swift.

masters3d avatar masters3d commented on June 25, 2024

we now support linux. There is updated documentation to run from the command line.

from swift.

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.