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

Feature Request: Silence output_message #116

Open
mollerhoj opened this issue Jan 9, 2022 · 0 comments
Open

Feature Request: Silence output_message #116

mollerhoj opened this issue Jan 9, 2022 · 0 comments

Comments

@mollerhoj
Copy link

I'd like to avoid the output message in the console.

Could we add an option to not display the message?

mscottford added a commit to corgibytes/aruba that referenced this issue Apr 7, 2023
The Simplecov HTML formatter, which is the default, writes a message to the console after it has stored coverage information the `coverage` directory. There is no built in way to suppress this message. See simplecov-ruby/simplecov-html#116 and https://github.com/simplecov-ruby/simplecov-html/blob/v0.12.3/lib/simplecov-html.rb#L23..L32.

The console output generated by this formatter causes failures for tests that are expecting exact command output.

The approach employed here is to monkey patch the method so that it still generates the same message, but instead of writing to the console, it writes to a file in the `coverage` directory named `summary.txt`.
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