Sha256: ae395edeebbd961d7850255f9629576a73a8636fe64f02c429fa46fb6b4f5565

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

//
//
//  Created by XCFit Framework
//  Copyright © 2016 XCFit Framework. All rights reserved.
//


/*

 This is sample code created by XCFit Framework and can be edited/Removed as needed.
 
 This is very important file as we will be using it as initialiser of all out test suite. We have to resgister all our Step Definitions in this class. e.g we have registed CommonStepDefinitions and HomeScreenSteps here

 */


import Foundation
import Cucumberish

class XCFit4DemoCucumberTests: NSObject {
    class func CucumberishSwiftInit()
    {
        var application : XCUIApplication!
        //A closure that will be executed just before executing any of your features
        beforeStart { () -> Void in
            application = XCUIApplication()
            CommonStepDefinitions.setup(application);
            HomeScreenSteps().HomeScreenSteps()
        }
        //A Given step definition
        Given("the app is running") { (args, userInfo) -> Void in
            application.launch()

        }
        let bundle = Bundle(for: XCFit4DemoCucumberTests.self)

        Cucumberish.executeFeatures(inDirectory: "Features", from: bundle, includeTags: nil, excludeTags: nil)
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xcfit-3.1.7 XCFit4Demo/XCFit4DemoCucumberTests/XCFit4DemoCucumberTests.swift
xcfit-3.1.6 XCFit4Demo/XCFit4DemoCucumberTests/XCFit4DemoCucumberTests.swift