You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The problem with big comprehensive test cases is that they have a lot of dependencies. Sometimes it's better to describe with diagrams, like mermaid.
Describe the solution you'd like
based on docs add a new application type for attachments: E.g. application/vnd.allure.diagrams.mermaid.
Or if we transform in code:
import{test}from'@playwright/test'import{allure}from'allure-playwright'test('some test',async()=>{allure.attachment('some diagram name',` graph TD A[Client] -->|tcp_123| B B(Load Balancer) B -->|tcp_456| C[Server1] B -->|tcp_456| D[Server2]`,'application/vnd.allure.diagrams.mermaid')})
Describe alternatives you've considered
For now, you can create attachments by typing text/html with the following content
<html><body><preclass="mermaid">
graph TD
A[Client] --> B[Load Balancer]
B --> C[Server1]
B --> D[Server2]
</pre><scripttype="module">importmermaidfrom'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';mermaid.initialize({startOnLoad: true});</script></body></html>
Additional context
Why mermaid? Since it provides a lot of kinds of diagrams - pie charts, mindmap, class diagrams, graphs.
application/vnd.allure.diagrams.* gives a flexible approach for other kind of diagram providers, like plantUML
Supporting mermaid will be a good point to support markdown style - like github. More on integrations page. For now it's not supported in TestOps(screen below)
The text was updated successfully, but these errors were encountered:
vitalics
changed the title
[Feature Request]. Add mermaid attachment
[Feature Request]. Add diagrams(mermaid) attachment
Jul 26, 2024
vitalics
changed the title
[Feature Request]. Add diagrams(mermaid) attachment
[Feature Request]. Add diagrams(mermaid) attachment support
Jul 26, 2024
baev
transferred this issue from allure-framework/allure-js
Jul 29, 2024
Is your feature request related to a problem? Please describe.
The problem with big comprehensive test cases is that they have a lot of dependencies. Sometimes it's better to describe with diagrams, like mermaid.
Describe the solution you'd like
based on docs add a new application type for attachments: E.g.
application/vnd.allure.diagrams.mermaid
.Or if we transform in code:
Describe alternatives you've considered
For now, you can create attachments by typing
text/html
with the following contentAdditional context
application/vnd.allure.diagrams.*
gives a flexible approach for other kind of diagram providers, like plantUMLThe text was updated successfully, but these errors were encountered: