question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test descriptions Markdown should be rendered in failure section

See original GitHub issue

When we output a test with the test-per-line output mode, the Markdown renders.

However, if that test fails, the Markdown doesn’t render inside the Rule:

Screenshot 2021-05-30 at 23 35 50

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
darrenburnscommented, Jun 15, 2021

@carlosmarin96 Of course. I suspect it will involve moving from the Text class to the Markdown class. Let me know if I can help at all 🙂

0reactions
AABurcommented, Apr 11, 2022

Simply changing the class from Text to Markdown won’t help. Parameter title of the Rule class has the type str | Text. Argument of type Markdown cannot be assigned to parameter title of type str | Text. And it is not possible to convert Markdown to Text because Rich renders Markdown on the fly.

Alternatives:

  • reject the idea completely and leave it as it is 🥇
  • display test.description under the rule with Markdown formatting and leave the rule as a line with no text
  • output as it is, as a line with text inside, but remove the Markdown markup from that text 👎
Read more comments on GitHub >

github_iconTop Results From Across the Web

rendering to md_document results in error if code generates ...
Hi, I have a document test.Rmd like this: --- output: md_document --- # test ```{r} library(DT) datatable(cars) ``` (just pretend that last ...
Read more >
The description failed to render for 'text/markdown'- PyPi
I tried to find the solution for over 2 hours but I can not get a clear answer. I use Mac, Visual Studio-...
Read more >
11.11 Output text as raw Markdown content (*) - Bookdown
11.11 Output text as raw Markdown content (*)​​ It is harmless to use an excessive number of line breaks between different elements, whereas...
Read more >
Using markdown in Jira - Atlassian Community
It is very confusing when you're writing text with and without markdown and then the markdown elements are rendered as you're typing. For...
Read more >
How To Test a React App with Jest and React Testing Library
In this tutorial, you will test asynchronous code and interactio… ... You will add a test block to the render method that will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found