Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cezheng/Volkswagen-Xcode
Detects when your Xcode tests are being run in a CI server, and makes them pass:see_no_evil:
https://github.com/cezheng/Volkswagen-Xcode
Last synced: 16 days ago
JSON representation
Detects when your Xcode tests are being run in a CI server, and makes them pass:see_no_evil:
- Host: GitHub
- URL: https://github.com/cezheng/Volkswagen-Xcode
- Owner: cezheng
- License: mit
- Created: 2015-10-09T11:36:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T00:45:14.000Z (over 7 years ago)
- Last Synced: 2024-11-01T00:51:25.754Z (16 days ago)
- Language: Objective-C
- Homepage:
- Size: 29.3 KB
- Stars: 103
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Volkswagen for Xcode
[![Build Status](https://travis-ci.org/cezheng/Volkswagen-Xcode.svg)](https://travis-ci.org/cezheng/Volkswagen-Xcode)[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Volkswagen.svg)](https://cocoapods.org/pods/Volkswagen)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Platform](https://img.shields.io/cocoapods/p/Volkswagen.svg?style=flat)](https://github.com/cezheng/Volkswagen-Xcode)[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](http://twitter.com/AdamoCheng)
[![Weibo](https://img.shields.io/badge/Weibo-@Real_Adam-blue.svg?style=flat)](http://weibo.com/cezheng)Volkswagen for Xcode makes failing test cases pass in CI servers.
This project is inspired by [volkswagen
](https://github.com/auchenberg/volkswagen) for javascript, and [phpunit-vw](https://github.com/hmlb/phpunit-vw) for PHP.# Example
Tests like these will pass.
## Swift```swift
import XCTestclass SwiftVolkswagenTests: XCTestCase {
func testAssertTrue() {
XCTAssertTrue(false);
}
func testAssertEqual () {
XCTAssertEqual(1, 2);
}
}
```
## Objective C```objc
#import@interface VolkswagenTests : XCTestCase
@end
@implementation VolkswagenTests
- (void)testAssertEqualObjects {
XCTAssertEqualObjects(nil, [NSString new]);
}- (void)testAssertNotNil {
XCTAssertNotNil(nil);
}@end
```
## Requirements
### Use CocoaPods or Carthage
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 7.0Pure Objective-C projects using CocoaPods should have lower requirements since they don't have to `use_frameworks!`.
### Manually include the source
- I have tested this yet, but this should work with almost all versions of OS in recent years> Currently using `Volkswagen-Xcode` on iOS/tvOS only supports Travis CI. More CI environment detection is yet to come. Keep an eye on this [issue](https://github.com/cezheng/Volkswagen-Xcode/issues/1).
# Installation
## CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `Volkswagen-Xcode` by adding it to your to your `Podfile`:```ruby
platform :osx, '10.9'
use_frameworks!target 'MyTestTarget' do
pod 'Volkswagen', '~> 0.2.0'
end
```Then, run the following command:
```bash
$ pod install
```### Carthage
Adding the following line to your `Cartfile.private`:```
github "cezheng/Volkswagen" ~> 0.2.0
```
Run the following command:```
$ carthage update
```
Then drag the `Volkswagen.framework` built by Carthage into your test target's `Build Phases` -> `Link Binary With Libraries`.## License
`Volkswagen-Xcode` is released under the MIT license. See [LICENSE](https://github.com/cezheng/Volkswagen-Xcode/blob/master/LICENSE) for details.