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

How do you use the CIRecordHelper? #92

Closed
scottjacobsen opened this issue Nov 17, 2023 · 1 comment
Closed

How do you use the CIRecordHelper? #92

scottjacobsen opened this issue Nov 17, 2023 · 1 comment

Comments

@scottjacobsen
Copy link

I'm trying to use the CIRecordHelper when running my tests in parallel on circleci, but as far as I can tell all it does is raise this error.

raise "#{HEADER} #{JSON.dump(to_output)}"

So my test output looks like:

Failures:

  1) User bar is expected to eq "foo"
     Failure/Error: raise "#{HEADER} #{JSON.dump(to_output)}"

     RuntimeError:
       [DeprecationToolkit] {"/tmp/test-results/deprecations/models/user.yml":{"test_user_bar_is_expected_to_eq_\"foo\"":["DEPRECATION WARNING: /Users/scott/dev/portal/spec/models/user_spec.rb:588: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call\n/Users/scott/dev/portal/app/models/user.rb:151: warning: The called method `foo' is defined here\n"]}}
     # /Users/scott/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/deprecation_toolkit-2.0.3/lib/deprecation_toolkit/behaviors/ci_record_helper.rb:21:in `trigger'
     # /Users/scott/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/deprecation_toolkit-2.0.3/lib/deprecation_toolkit/test_triggerer.rb:9:in `trigger_deprecation_toolkit_behavior'
     # /Users/scott/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/deprecation_toolkit-2.0.3/lib/deprecation_toolkit/rspec.rb:7:in `block (2 levels) in <main>'
     # /Users/scott/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/rspec-core-3.11.0/lib/rspec/core/example.rb:457:in `instance_exec'
...

And no json file is written. What am I doing wrong?

@scottjacobsen
Copy link
Author

Okay - I figured it out - you simply pass your rpsec output to the rake task. It wasn't clear from the instructions.

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