Comments (8)
@hankturowski How have you been running the test suites?
from swift.
Thus far I've only run the tests using the Xcode6 GUI.
from swift.
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.
Any progress on this @ahalls? I've been looking into running XCTests from the CLI, but I haven't made much progress.
from swift.
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.
Im going to close this for now. We can revisit this when swift is stable in Linux.
from swift.
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:
from swift.
we now support linux. There is updated documentation to run from the command line.
from swift.
Related Issues (20)
- Run Tests results in "An Error Occurred" for Hello World, Lasagna with macOS Safari HOT 2
- Some concept exercises have 2 source and test directories HOT 3
- RobotName exercise test problem HOT 5
- Clock exercise's instructions are insufficient
- Solution in Layer's Of Lasagna [Swift] HOT 4
- The 1st Rule of Poetry Club solution idea HOT 1
- Windowing System: cannot create a new window HOT 3
- Swift Binary Search Tree Tests Bug HOT 1
- 🤖 Sync error for commit ce0043
- Bad Master-mixologist test
- Hello World Exercise test getting timed out in both online editor and CLI HOT 1
- Building a training set of tags for swift HOT 21
- Deprecate scale-generator?
- Async for Pythagorean Triplet HOT 1
- Saddle points formatting problem HOT 1
- Test suite skipping 14 of 15 tests in wings-quest exercise HOT 1
- Documentation: introduction.md improvements / fixes for Lasagna
- Explain use of closures to overcome disallowed expressions at top level in Windowing System
- Freelancer Rates [Swift] - Test cases need to reflect new values HOT 2
- [Swift] Code checker script fails correct code and might confuse new students. HOT 3
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 swift.