Skip to content

Commit

Permalink
Merge pull request #30 from k1LoW/fix-central-report-format
Browse files Browse the repository at this point in the history
Update central mode report format
  • Loading branch information
k1LoW committed Jun 13, 2021
2 parents 869b1ef + 35789c1 commit 4491d4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion central/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges |
| --- | --- | --- | --- | --- |
{{- range $r := .Reports }}
| [{{ $r.Repository }}]({{ $.Host }}/{{ $r.Repository }}) | {{ $r | coverage }} | {{ $r | ratio }} | {{ $r | time }} | ![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/coverage.svg)<br>```![Coverage]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg)```{{ if $r.CodeToTestRatio }}<br>![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/ratio.svg)<br>```![Code to Test Ratio]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg)```{{ end }}{{ if $r.TestExecutionTime }}<br>![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/time.svg)<br>```![Test Execution Time]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg)```{{ end }} |
| [{{ $r.Repository }}]({{ $.Host }}/{{ $r.Repository }}) | {{ $r | coverage }} | {{ $r | ratio }} | {{ $r | time }} | ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg){{ if $r.CodeToTestRatio }} ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg){{ end }}{{ if $r.TestExecutionTime }} ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg){{ end }} <details><summany>Copy status badge markdown</summary>```![Coverage]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg)```{{ if $r.CodeToTestRatio }}<br>```![Code to Test Ratio]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg)```{{ end }}{{ if $r.TestExecutionTime }}<br>```![Test Execution Time]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg)```{{ end }}</details> |
{{- end }}

---
Expand Down
8 changes: 4 additions & 4 deletions example/central/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

| Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges |
| --- | --- | --- | --- | --- |
| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](badges/k1LoW/awspec/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg)```<br>![k1LoW/awspec](badges/k1LoW/awspec/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg)``` |
| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](badges/k1LoW/tbls/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg)```<br>![k1LoW/tbls](badges/k1LoW/tbls/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg)```<br>![k1LoW/tbls](badges/k1LoW/tbls/time.svg)<br>```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg)``` |
| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg)```<br>![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg)``` |
| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](badges/winebarrel/ridgepole/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg)```<br>![winebarrel/ridgepole](badges/winebarrel/ridgepole/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg)``` |
| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg) ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg)```</details> |
| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg)```<br>```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg)```</details> |
| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg) ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg)```</details> |
| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg) ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg)```</details> |

---

Expand Down
8 changes: 4 additions & 4 deletions testdata/central_README.md.golden
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

| Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges |
| --- | --- | --- | --- | --- |
| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](badges/k1LoW/awspec/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg)```<br>![k1LoW/awspec](badges/k1LoW/awspec/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg)``` |
| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](badges/k1LoW/tbls/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg)```<br>![k1LoW/tbls](badges/k1LoW/tbls/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg)```<br>![k1LoW/tbls](badges/k1LoW/tbls/time.svg)<br>```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg)``` |
| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg)```<br>![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg)``` |
| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](badges/winebarrel/ridgepole/coverage.svg)<br>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg)```<br>![winebarrel/ridgepole](badges/winebarrel/ridgepole/ratio.svg)<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg)``` |
| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg) ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg)```</details> |
| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg)```<br>```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg)```</details> |
| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg) ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg)```</details> |
| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg) ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg) <details><summany>Copy status badge markdown</summary>```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg)```<br>```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg)```</details> |

---

Expand Down

0 comments on commit 4491d4e

Please sign in to comment.