Volkswagen for Xcode makes failing test cases pass in CI servers.
This project is inspired by volkswagen for javascript, and phpunit-vw for PHP.
Tests like these will pass.
import XCTest
class SwiftVolkswagenTests: XCTestCase {
func testAssertTrue() {
XCTAssertTrue(false);
}
func testAssertEqual () {
XCTAssertEqual(1, 2);
}
}#import <XCTest/XCTest.h>
@interface VolkswagenTests : XCTestCase
@end
@implementation VolkswagenTests
- (void)testAssertEqualObjects {
XCTAssertEqualObjects(nil, [NSString new]);
}
- (void)testAssertNotNil {
XCTAssertNotNil(nil);
}
@end- iOS 8.0+ / Mac OS X 10.9+
- Xcode 7.0
Pure Objective-C projects using CocoaPods should have lower requirements since they don't have to use_frameworks!.
- I have tested this yet, but this should work with almost all versions of OS in recent years
Currently using
Volkswagen-Xcodeon iOS/tvOS only supports Travis CI. More CI environment detection is yet to come. Keep an eye on this issue.
You can use CocoaPods to install Volkswagen-Xcode by adding it to your to your Podfile:
platform :osx, '10.9'
use_frameworks!
target 'MyTestTarget' do
pod 'Volkswagen', '~> 0.2.0'
endThen, run the following command:
$ pod installAdding 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.
Volkswagen-Xcode is released under the MIT license. See LICENSE for details.