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

Allow for customizing code quotes #506

Conversation

martin-schulze-vireso
Copy link
Member

@martin-schulze-vireso martin-schulze-vireso commented Oct 21, 2021

Fixes #470 supersedes #474
Add flag --code-quote-style <style>, add new variables

  • BATS_CODE_QUOTE_STYLE
  • BATS_BEGIN_CODE_QUOTE
  • BATS_END_CODE_QUOTE

Styles can be two characters, where the first will be put before the code, the second after, or custom, where BATS_{BEGIN,END}_CODE_QUOTE must be set individually. Unicode characters may work too (on windows STYLE=custom may be required).

TODO:

  • add tests
  • documentation

@martin-schulze-vireso martin-schulze-vireso added this to the 1.6.0 milestone Oct 22, 2021
@martin-schulze-vireso martin-schulze-vireso force-pushed the feature/issue-470-customize-code-quotes branch from c6842c5 to 8960f92 Compare November 12, 2021 14:34
martin-schulze-vireso added a commit to martin-schulze-vireso/bats-core that referenced this pull request Nov 12, 2021
martin-schulze-vireso added a commit to martin-schulze-vireso/bats-core that referenced this pull request Nov 12, 2021
@martin-schulze-vireso martin-schulze-vireso marked this pull request as ready for review November 12, 2021 15:26
@martin-schulze-vireso martin-schulze-vireso requested a review from a team as a code owner November 12, 2021 15:26
@martin-schulze-vireso martin-schulze-vireso force-pushed the feature/issue-470-customize-code-quotes branch from d9962a8 to 58d7124 Compare November 17, 2021 22:02
@martin-schulze-vireso martin-schulze-vireso merged commit 0a6a251 into bats-core:master Nov 17, 2021
@martin-schulze-vireso martin-schulze-vireso deleted the feature/issue-470-customize-code-quotes branch May 23, 2022 22:16
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.

What's the purpose of the grave accent ` in failure messages?
1 participant