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

Creating a new Task of type CucumberTask #58

Open
cah-chaitanya-munagala opened this issue Mar 23, 2016 · 1 comment
Open

Creating a new Task of type CucumberTask #58

cah-chaitanya-munagala opened this issue Mar 23, 2016 · 1 comment

Comments

@cah-chaitanya-munagala
Copy link

How do I Create a new task of type CucumberTask?

I tried the following but when I try to run I get "Cannot invoke method copyTo() on null object"

task "${driver}Test" (type: CucumberTask) {

        outputs.upToDateWhen { false }  // Always run tests

        dependsOn unzipChromeDriver
        def chromeDriverFilename = Os.isFamily(Os.FAMILY_WINDOWS) ? "chromedriver.exe" : "chromedriver"
        jvmOptions.systemProperties([
                "webdriver.chrome.driver"   : new File(unzipChromeDriver.outputs.files.singleFile, chromeDriverFilename).absolutePath,
                "geb.cucumber.step.packages": "pages",
                "geb.env"                   : driver
        ])
    }

Appreciate if I can get some help in figuring this out.

@gregmunt
Copy link
Collaborator

Why do you need to create a new task? The plugin automatically creates a task named 'cucumber', of type CucumberTask. Do you need multiple cucumber tasks, or some other reason?

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

2 participants