-
Notifications
You must be signed in to change notification settings - Fork 440
Allow for output format to differ between stdout and report file #345
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
Allow for output format to differ between stdout and report file #345
Conversation
99b2ddc
to
72ad0c3
Compare
This should also fix #311 now. While working on the escaping of the CDATA sections I noticed the problem is more widespread. We also need to escape those parts where file names, test names, or skip messages are inserted, as they might contain characters that break the xml. Hence, I opted for using xml escape sequences like |
8ed7e14
to
b060bf1
Compare
87b332f
to
22cb89f
Compare
20ff78b
to
2f01516
Compare
I've added a commit, this looks great. One question is flag names, currently I also think the |
Yes, I also thought about that but reporter is a loaded word. If we are okay with a long name I would opt for |
I just noticed that there is a problem when we want to use a report formatter that uses the internal extended syntax and the tap formatter which simply forwards the input. We can either forbid this combination or we have to implement a filter function on the tap formatter or we live with the invalid tap output. |
d99b941
to
e1b1c3f
Compare
ad6af0b
to
43cf868
Compare
I made the TAP formatter compatible with extended syntax. For this I added In the long run this offers the opportunity to check if the formatters implement the interface correctly by at least having a definition of these callbacks, which might pave the way for a stable interface to move formatters out of bats-core. |
Thanks, LMK if this ready to review and merge 🙏
…On Wed, 30 Sep 2020 at 07:58, Martin Schulze ***@***.***> wrote:
I made the TAP formatter compatible with extended syntax. For this I added
lib/bats-core/formatter.bash to centralize the parsing logic and use
callbacks for the individual formatters. I only implemented this for tap
and pretty, we should move the others over to this interface as well.
In the long run this offers the opportunity to check if the formatters
implement the interface correctly by at least having a definition of these
callbacks, which might pave the way for a stable interface to move
formatters out of bats-core.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAXZLJU4BHYSBP4TAT5JLSILJILANCNFSM4QHYJDQQ>
.
|
b24edf8
to
3559357
Compare
@sublimino You can review now. |
which does not work on busy box
or we would get errors on empty suites
but don't advertise it to the users
or we would fail the escaping test, because the skip is not detected
e1aeb07
to
140d43c
Compare
This mainly deals with #342 but might incorporate #341 as well.
document --report option
update to TAP13 compliant timing #337's timing information, as soon as it lands
I have reviewed the Contributor Guidelines.
I have reviewed the Code of Conduct and agree to abide by it