Skip to content

Commit

Permalink
Use compatible with Mermaid 9.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Mar 12, 2023
1 parent 9377c0d commit 80119d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Located in `build/reports/tests-execution/mermaid/*.txt`.

```
gantt
dateFormat YYYY-MM-DD\THH\:mm\:ss\.SSSZ
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZZ
axisFormat %H:%M:%S.%L
section Test1Spec
test 2 - 120 ms :active, 2022-11-08T20:46:17.854+0100, 2022-11-08T20:46:17.974+0100
Expand All @@ -104,7 +104,7 @@ rendered: ([info](https://github.blog/2022-02-14-include-diagrams-markdown-files

```mermaid
gantt
dateFormat YYYY-MM-DD\THH\:mm\:ss\.SSSZ
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZZ
axisFormat %H:%M:%S.%L
section Test1Spec
test 2 - 120 ms :active, 2022-11-08T20:46:17.854+0100, 2022-11-08T20:46:17.974+0100
Expand Down Expand Up @@ -227,7 +227,9 @@ Gradle can generate reports in JUnit XML format. But such reports cannot be used

## Unreleased

- nothing
### Changed

- Use `dateFormat` compatible with Mermaid 9.4.2

## 0.2.1 (07 March 2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TestExecutionMermaidDiagramFormatter {
val testNameWithDuration = "${it.testName} - ${it.endTime.minus(it.startTime)} ms"
diagramBuilder.add(it.className!!, testNameWithDuration, types[it.resultType], it.startTime, it.endTime)
}
val diagram = diagramBuilder.build("YYYY-MM-DD\\THH\\:mm\\:ss\\.SSSZ", "%H:%M:%S.%L")
val diagram = diagramBuilder.build("YYYY-MM-DDTHH:mm:ss.SSSZZ", "%H:%M:%S.%L")
return MermaidGanttDiagramFormatter().format(diagram, "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
}
}

0 comments on commit 80119d2

Please sign in to comment.