Volkswagen 0.2.0

Volkswagen 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2015

Maintained by Ce Zheng.



Volkswagen for Xcode

Volkswagen for Xcode makes failing test cases pass in CI servers.

This project is inspired by volkswagen for javascript, and phpunit-vw for PHP.

Example

Tests like these will pass.

Swift

import XCTest

class SwiftVolkswagenTests: XCTestCase {

  func testAssertTrue() {
    XCTAssertTrue(false);
  }

  func testAssertEqual () {
    XCTAssertEqual(1, 2);
  }
}

Objective C

#import <XCTest/XCTest.h>

@interface VolkswagenTests : XCTestCase

@end

@implementation VolkswagenTests

- (void)testAssertEqualObjects {
  XCTAssertEqualObjects(nil, [NSString new]);
}

- (void)testAssertNotNil {
  XCTAssertNotNil(nil);
}

@end

Requirements

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.

Installation

License

Volkswagen-Xcode is released under the MIT license. See LICENSE for details.