This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension KIFTestCase { | |
class func reset() -> () { | |
var delegate = UIApplication.sharedApplication().delegate as AppDelegate | |
delegate.resApp() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func resApp() -> () { | |
_initialStoryboard = window!.rootViewController!.storyboard; | |
for view in self.window!.subviews { | |
view.removeFromSuperview() | |
} | |
let initialScene:UIViewController = _initialStoryboard!.instantiateInitialViewController() as UINavigationController |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SwiftKIFTestCase: KIFTestCase { | |
func tester(_ file : String = __FILE__, _ line : Int = __LINE__) -> KIFUITestActor { | |
return KIFUITestActor(inFile: file, atLine: line, delegate: self) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$testRunner = "FunctionalTestRunner.js"; | |
$testFiles = array( | |
'RegisterTest.js' => array( | |
'paths' => array( | |
'/account/register' | |
), | |
'useCookies' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = function() {}; | |
context.prototype = parentContext; | |
this.ctx = new context(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phpunit | |
beStrictAboutTestSize = "true" | |
timeoutForSmallTests = "1" | |
timeoutForMediumTests = "50" | |
timeoutForLargeTests = "50"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @test | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function tearDown() { | |
parent::tearDown(); | |
$this->dbh = null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CookieJar::~CookieJar() | |
{ | |
// On destruction, before saving, clear all the session cookies | |
//purgeSessionCookies(); | |
save(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Example Test Suite', function(){ | |
describe('Test the form', function(){ | |
it('starts with empty inputs', function(){ | |
var $username = $("#username"), | |
$password = $("#password"); | |
expect($username.val()).to.equal(''); |