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

Remove unnecessary information from test runner output #932

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

nellirx
Copy link
Contributor

@nellirx nellirx commented Apr 17, 2022

Expected 'bundle exec rspec' to only show progress and test suite
relevant information.

Actual output contains request and response details alongside the test
progress output:

Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Randomized with seed 53488
....I, [2022-04-17T18:59:48.433699 #51793]  INFO -- request: GET http://localhost:53392/localhost_test
I, [2022-04-17T18:59:48.433787 #51793]  INFO -- request: User-Agent: "Faraday v1.10.0"
I, [2022-04-17T18:59:48.448329 #51793]  INFO -- response: Status 200
I, [2022-04-17T18:59:48.448476 #51793]  INFO -- response: content-type: "text/html;charset=utf-8"
content-length: "18"
server: "WEBrick/1.7.0 (Ruby/3.1.2/2022-04-12)"
date: "Sun, 17 Apr 2022 17:59:48 GMT"
connection: "Keep-Alive"
I, [2022-04-17T18:59:48.451178 #51793]  INFO -- request: GET http://localhost:53392/localhost_test
I, [2022-04-17T18:59:48.451242 #51793]  INFO -- request: User-Agent: "Faraday v1.10.0"
I, [2022-04-17T18:59:48.454387 #51793]  INFO -- response: Status 200
I, [2022-04-17T18:59:48.454450 #51793]  INFO -- response: content-type: "text/html;charset=utf-8"
content-length: "18"
server: "WEBrick/1.7.0 (Ruby/3.1.2/2022-04-12)"
date: "Sun, 17 Apr 2022 17:59:48 GMT"
connection: "Keep-Alive"
.

Finished in 0.04076 seconds (files took 1.09 seconds to load)
5 examples, 0 failures

Expected 'bundle exec rspec' to only show progress and test suite
relevant information.

Actual output contains request and response details alongside the test
progress output.
@olleolleolle
Copy link
Member

Sounds good! Thanks for your PR!

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduces unwanted messages! Thanks 🙏!

@olleolleolle olleolleolle merged commit d874932 into vcr:master Apr 18, 2022
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