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

Ability to run parallel_cucumber using profile only #575

Open
vveliev opened this issue Jul 27, 2017 · 12 comments
Open

Ability to run parallel_cucumber using profile only #575

vveliev opened this issue Jul 27, 2017 · 12 comments

Comments

@vveliev
Copy link

vveliev commented Jul 27, 2017

Hey i'm trying to run simple profile using parallel test

exec parallel_cucumber -o '--profile smoke'
>>> Pass files or folders to run

cucumber.yml:

smoke: >
  --color -f pretty -t @smoke
  features/test1.feature
  features/regression/file2.feature
  features/regression/file3.feature
  features/regression/file4.feature
  features/regression/file5.feature

I would like to use profile only, and avoid passing files/folders , as it does not work as expected when running as :

exec parallel_cucumber -o '--profile smoke' features/
@enkessler
Copy link
Contributor

I believe that you need a -- before the directory that you want to run in parallel. Try exec parallel_cucumber -o '--profile smoke' -- features/ instead.

@vveliev
Copy link
Author

vveliev commented Jul 28, 2017

@enkessler yes , but then it's ignoring file list in the profile , and running all files that much the profile tags from feature/ folder

@enkessler
Copy link
Contributor

Cucumber does not allow (at least not the in Ruby version) file locations to be specified both in a profile and passed directly to the command. It's one or the other.

@vveliev
Copy link
Author

vveliev commented Jul 28, 2017

i'm not arguing about that .....

my cucumber command:

bundler exec cucumber -p smoke

it has list of files with in the profile rather then folder ...

@grosser
Copy link
Owner

grosser commented Jul 29, 2017

something silly like parallel_cucumber $(cat smoke) ?

@vveliev
Copy link
Author

vveliev commented Jul 31, 2017

I don't think creating files for each profile is a good solution ........
Why not have parallel cucumber get files from profiles and don't have a requirement to have folder/path to be required to run cucumber in parallel

@grosser
Copy link
Owner

grosser commented Jul 31, 2017

what does a profile look like ? ... is it a list of files or some custom config ?
if it's custom config then maybe add a --profile flag to parallel_cucumber that reads it and extracts the files it needs to run ?

@vveliev
Copy link
Author

vveliev commented Jul 31, 2017

List of files in standard cucumber.yml file, example on my first post.

@grosser
Copy link
Owner

grosser commented Jul 31, 2017

then add a --profile option to read that :)
... make sure it blows up with a nice error message when used outside of cucumber

@vveliev
Copy link
Author

vveliev commented Jul 31, 2017

this will do ?! #576

@grosser
Copy link
Owner

grosser commented Jul 31, 2017 via email

@LerryAlexander
Copy link

LerryAlexander commented May 6, 2022

I think correct execution should be:
exec parallel_cucumber -n 4 -o '-p smoke'
In which n means the number of CPUs processes to use

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