-
Notifications
You must be signed in to change notification settings - Fork 92
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
support for parallel_tests #10
Comments
We don't have support for parallel_tests yet but we'd like to support it in the future. I'll leave this open and we'll update when we start on it. |
👍 |
I'm not sure how similar Travis works to parallel_tests, but support for split up tests on Travis would be great. |
I'm a big fan of CircleCI's parallel builds, I'm hoping this will be supported soon. |
👍 |
4 similar comments
👍 |
👍 |
👍 |
👍 |
I was able to get this working. In your require 'simplecov'
require 'codeclimate-test-reporter'
SimpleCov.add_filter 'vendor'
SimpleCov.formatters = []
SimpleCov.start CodeClimate::TestReporter.configuration.profile Then after all your tests run, in a rake task do:
That should send things to codeclimate aggregated. Be sure you're using simplecov >= 0.9.0 |
Thanks for the information @aaronjensen, that looks like a good trick! Do you mind to open a PR to modify the readme pointing to this solution? I can do it myself, but I don't want to take credit. |
Closing this as fixed. Thank you! |
Does this fix work on CircleCI? |
Run this script as part of the circle ci build process. The script will merge the simplecov results, format to html and also post to codeclimate. Add the following to circle.yml (assuming the script path is test:
post:
- bundle exec script/circle |
@evanwhalen what does your spec helper look like? are you using the codeclimate reporter:
or SimpleCov directly? Thanks! |
@iamnader the spec helper only reference simplecov and not code climate test reporter. The aforementioned script merges the results generated by simplecov and posts them to code climate. require 'simplecov'
if ENV['CIRCLE_ARTIFACTS']
dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
SimpleCov.coverage_dir(dir)
end |
Thanks @evanwhalen Isn't ENV["CIRCLE_ARTIFACTS"] an absolute path? Why do you use: "..", "..", ".." ? |
I noticed there's support for tddium's parallel builds, is there also support for the parallel_tests gem? I haven't had a chance to try it yet, so feel free to consider this issue a request for documentation if there already is :)
The text was updated successfully, but these errors were encountered: