feat: add assert_stderr and assert_stderr_line#52
feat: add assert_stderr and assert_stderr_line#52adoyle-h wants to merge 1 commit intobats-core:masterfrom
Conversation
|
@martin-schulze-vireso This PR is ready. Can you review it? |
- bats-assert use [my fork](https://github.com/adoyle-h/bats-assert.git), waiting the [PR](bats-core/bats-assert#52) merged.
martin-schulze-vireso
left a comment
There was a problem hiding this comment.
I really dislike the amount of code duplication. Can we have a central implementation that is used by both assert_output and assert_stderr (and _lines likewise)? Similarly, I'd fold the documentation into assert_output's or link to it from there. Feature changes will sooner or later get lost on one of the two duplicates.
|
@adoyle-h Do you plan to work on this? |
|
Sorry, I'm occupied with work. |
|
Hi @martin-schulze-vireso |
|
If you are willing to work in this, you can use the code as starting point but have to open your own PR. I don't have the time to do so myself right now. |
Hi @martin-schulze-vireso started working on this I think this wil allows to reuse most of assert_output in bats-assert/src/assert_output.bash Lines 124 to 197 in e2d855b also we can define an "alias" for assert_stderr => assert_output --stderr
|
|
see #69 |
I addressed your feedback and refactored the code of this pull request into PR #72. I refactored the existing assert_* functions to handle stdout and stderr streams. |
fix #42