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 configure spec tasks #3

Closed
solnic opened this issue Dec 10, 2012 · 4 comments
Closed

Ability to configure spec tasks #3

solnic opened this issue Dec 10, 2012 · 4 comments
Labels

Comments

@solnic
Copy link
Collaborator

solnic commented Dec 10, 2012

So. I think it'd be nice if we could generate spec tasks based on configuration. We could have config/specs.yml with:

integration: spec/integration/**/*_spec.rb
unit: spec/unit

...by default and let devtools generate tasks based on that.

@mbj
Copy link
Owner

mbj commented Dec 11, 2012

Nice idea. We can expand this into a test matrix, to ease travis integration.

@solnic solnic closed this as completed in 6f2006c Dec 16, 2012
@solnic
Copy link
Collaborator Author

solnic commented Dec 16, 2012

Oops I used incorrect issue number in that commit. Reopening.

@moonglum
Copy link
Contributor

I like the idea. It would also be an opportunity to let the user choose between integration and acceptance tests. I personally use acceptance tests and therefore do the following in my adjustments.rake:

Rake::Task['spec'].clear
Rake::Task['spec:integration'].clear

desc 'Run all specs'
task spec: %w[ spec:unit spec:acceptance ]

namespace :spec do
  desc 'Run the acceptance tests'
  RSpec::Core::RakeTask.new(:acceptance) do |spec|
    spec.pattern = 'spec/acceptance/*_spec.rb'
  end
end

@mbj
Copy link
Owner

mbj commented Sep 10, 2015

Devtools spec task only exists to serve the ci task. running specs for local development should IMO be done via the rspec binary. Closing this issue as this is an opinionated tool ;)

@mbj mbj closed this as completed Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants