Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executeFeatures nothing happens #125

Open
khalilTN opened this issue Sep 24, 2019 · 4 comments
Open

executeFeatures nothing happens #125

khalilTN opened this issue Sep 24, 2019 · 4 comments

Comments

@khalilTN
Copy link

khalilTN commented Sep 24, 2019

Hi,

I'm using cucumberish with XCode 10.3 and Swift
When runnig tests, CucumberishSwiftInit gets called, calling executeFeatures, but none of my features gets executed.

Thanks in advance

@antonbremer
Copy link

Hi,

I'm using cucumberish with XCode 10.3 and Swift
When runnig tests, CucumberishSwiftInit gets called, calling executeFeatures, but none of my features gets executed.

Thanks in advance

@khalilTN Same here. :( Did you manage to resolve this? Is Cucumberish still maintained? It looks awesome, really want to get this to work.. :)

@antonbremer
Copy link

Hi,

I'm using cucumberish with XCode 10.3 and Swift
When runnig tests, CucumberishSwiftInit gets called, calling executeFeatures, but none of my features gets executed.

Thanks in advance

I got it working in my environment, Xcode 11.2.1, Swift 5

In my case I made a mistake creating the folder. I created the folder in Xcode, rather than creating it as a folder reference.
So to fix it I did the following steps:

  1. I located my "Features" folder in Finder
  2. I dragged the folder into Xcode inside my Test Target
  3. I selected "Create folder references"

This is actually well described in step 4 and 5 here: https://github.com/Ahmed-Ali/Cucumberish/wiki/Install-manually-for-Swift

@0megaD
Copy link

0megaD commented Dec 19, 2019

We've had an issue where naming the Feature 'Example' wouldn't cause the test feature to load, but giving it a different name did work. No idea why 'Example' would break the feature, but it did.

@idelfonsog2
Copy link
Contributor

This might shed some light:

I always forget to call the methods that implement the function calls to the cucumberish framewrok, in this case, LoginStepsImplementation() class. As a result, my CucumberInitializer.swift looks like the following

@objc public class CucumberishInitializer: NSObject {
    
    @objc public class func CucumberishSwiftInit() {

->        LoginSteps().LoginStepsImplementation()

        let bundle = Bundle(for: CucumberishInitializer.self)
        Cucumberish.executeFeatures(inDirectory: "features", from: bundle, includeTags: ["iOS", "OPEN"], excludeTags: ["", "MANUAL"])

    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants