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

Specs in lib folder #434

Closed
grosser opened this issue Sep 3, 2015 · 1 comment
Closed

Specs in lib folder #434

grosser opened this issue Sep 3, 2015 · 1 comment

Comments

@grosser
Copy link
Owner

grosser commented Sep 3, 2015

Copied from email:
we are experiencing difficulties using the parallel_test gem to run specs in a lib folder

We have our specs in a file structure that looks like this:

project_root/
    spec/
        features/
        other_specs/
    lib/
        my_directory/
            spec/
                my_other_directory/
                    something_spec.rb

when we run bundle exec rake parallel:spec or bundle exec rake parallel:spec[^spec/] all the specs in the spec folder run as desired.

when we run bundle exec rake parallel:spec[^lib/my_directory/spec/my_other_directory/] no specs are run and the output is "0 processes for 0 specs, ~ 0 specs per process"

parallel_test is a lifesaver and we really need it for this project. if you could please shed some light on what might be going on or suggest what we should try next we would be very grateful.

thank you for your time.

@grosser
Copy link
Owner Author

grosser commented Sep 3, 2015

tests are only loaded from the spec folder by default, so doing ^lib will match nothing

you should be able to do:

parallel_rspec . to make it search in all folders ... or parallel_rspec lib spec

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