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

invalid task names in readme #874

Open
masukomi opened this issue Jun 20, 2022 · 1 comment
Open

invalid task names in readme #874

masukomi opened this issue Jun 20, 2022 · 1 comment

Comments

@masukomi
Copy link

in the readme the task names are all parallel:foo but the reality is that you need to use app:foo

not sure which is desired in the current version but they should both be the same. ;)

expected behavior:

expected to be able to run rake parallel:spec

actual behavior

had to run rake app:parallel:spec

notes

here's the output of rake --tasks

❯ rake --tasks | grep parallel
rake app:parallel:create[count]                                         # Create test databases via db:create --> parallel:create[num_cpus]
rake app:parallel:drop[count]                                           # Drop test databases via db:drop --> parallel:drop[num_cpus]
rake app:parallel:features[count,pattern,options,pass_through]          # Run features in parallel with parallel:features[num_cpus]
rake app:parallel:features-spinach[count,pattern,options,pass_through]  # Run features-spinach in parallel with parallel:features-spinach[num_cpus]
rake app:parallel:load_schema[count]                                    # Load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]
rake app:parallel:load_structure[count]                                 # Load structure for test databases via db:schema:load --> parallel:load_structure[num_cpus]
rake app:parallel:migrate[count]                                        # Update test databases via db:migrate --> parallel:migrate[num_cpus]
rake app:parallel:prepare[count]                                        # Update test databases by dumping and loading --> parallel:prepare[num_cpus]
rake app:parallel:rake[command,count]                                   # Launch given rake command in parallel
rake app:parallel:rollback[count]                                       # Rollback test databases via db:rollback --> parallel:rollback[num_cpus]
rake app:parallel:seed[count]                                           # Load the seed data from db/seeds.rb via db:seed --> parallel:seed[num_cpus]
rake app:parallel:setup[count]                                          # Setup test databases via db:setup --> parallel:setup[num_cpus]
rake app:parallel:spec[count,pattern,options,pass_through]              # Run spec in parallel with parallel:spec[num_cpus]
rake app:parallel:test[count,pattern,options,pass_through]              # Run test in parallel with parallel:test[num_cpus]
@grosser
Copy link
Owner

grosser commented Jun 20, 2022

they should not be under app:
check how the tasks are required and compare it against the readme
or https://github.com/grosser/parallel_tests/tree/master/spec/fixtures/rails70

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