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

add a group for Active Jobs classes to default Rails profile #442

Merged
merged 1 commit into from
Jan 27, 2016
Merged

add a group for Active Jobs classes to default Rails profile #442

merged 1 commit into from
Jan 27, 2016

Conversation

stve
Copy link
Contributor

@stve stve commented Dec 16, 2015

I'm using Active Job in a Rails project for the first time and my job classes are currently "Ungrouped". Since app/jobs is the default location for these classes, I think it's worth adding this to the Rails profile.

Are there tests for this? I couldn't find any but if I've missed them, please point them out and I'll add a test as well. Thanks

@colszowka
Copy link
Collaborator

Thanks, makes sense to have this!

Since with the existing frameworks like sidekiq and resque, the convention is to go with "app/workers", could you please add this dir as well? You can pass in an array of paths, so add_group "Jobs", %w(app/jobs app/workers) should do it.

@stve
Copy link
Contributor Author

stve commented Jan 26, 2016

Hi @colszowka, thanks for the feedback. I updated the pull request based on your suggestion and rebased against master so that it will merge cleanly.

colszowka added a commit that referenced this pull request Jan 27, 2016
add a group for Active Jobs classes to default Rails profile
@colszowka colszowka merged commit b3b86df into simplecov-ruby:master Jan 27, 2016
@colszowka
Copy link
Collaborator

Thank you @stve !

colszowka added a commit that referenced this pull request Jan 27, 2016
craiglittle pushed a commit to craiglittle/simplecov that referenced this pull request Feb 13, 2016
jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Feb 17, 2016
## Enhancements

## Bugfixes

0.11.2 2016-02-03 ([changes](simplecov-ruby/simplecov@v0.11.1...v0.11.2))
=================

## Enhancements

* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](simplecov-ruby/simplecov#449) (thanks @amatsuda)
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](simplecov-ruby/simplecov#453) (thanks @paddor)
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](simplecov-ruby/simplecov#447) (thanks @craiglittle)
* Add a group for background jobs to default Rails profile. See [#442](simplecov-ruby/simplecov#442) (thanks @stve)

## Bugfixes

* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](simplecov-ruby/simplecov#437) (thanks @tmtm)
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

Successfully merging this pull request may close these issues.

None yet

2 participants