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

How to pass in a option or cli #38

Open
prolificcoder opened this issue Jan 26, 2016 · 1 comment
Open

How to pass in a option or cli #38

prolificcoder opened this issue Jan 26, 2016 · 1 comment

Comments

@prolificcoder
Copy link

I need to pass in --grep = 'test name' to my task mochaTest:android. How do I do that?
I've been trying this for a while and tried following.
tasks:[{
grunt:true,
args:['mochaTest:android'],
options: ['--grep=test_names'],
}, {
grunt:true,
args:['mochaTest:android'],
options:['--grep=test_names'],
}]
}

tasks:[{
grunt:true,
args:['mochaTest:android --grep='test_name'],
}, {
grunt:true,
args:['mochaTest:android'],
}]
}

tasks:[{
grunt:true,
args:['mochaTest:android'],
flags: ['--grep=test_names'],
}, {
grunt:true,
args:['mochaTest:android'],
flags:['--grep=test_names'],
}]
}

tasks:[{
grunt:true,
args:['mochaTest:android'],
flags: 'grep=test_names',
}, {
grunt:true,
args:['mochaTest:android'],
flags:'grep=test_names',
}]
}

@prolificcoder
Copy link
Author

to be clear I was able to passin correct arguments from the command line/std in but I want to be able to pass arguments from within the task definition

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

1 participant