mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
feat(health): summary in section heading #33388
Problem: As checkhealth grows, it is increasingly hard to quickly glance through the information. Solution: Show a summary of ok, warn, and error outputs per section.
This commit is contained in:
committed by
GitHub
parent
ff2cbe8fac
commit
5a94edad70
@@ -91,7 +91,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug.full_render: require("test_plug.full_render.health").check()
|
||||
test_plug.full_render: 1 ⚠️ 1 ❌
|
||||
|
||||
report 1 ~
|
||||
- ✅ OK life is fine
|
||||
@@ -114,7 +114,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug: require("test_plug.health").check()
|
||||
test_plug: ✅
|
||||
|
||||
report 1 ~
|
||||
- ✅ OK everything is fine
|
||||
@@ -123,7 +123,7 @@ describe('vim.health', function()
|
||||
- ✅ OK nothing to see here
|
||||
|
||||
==============================================================================
|
||||
test_plug.success1: require("test_plug.success1.health").check()
|
||||
test_plug.success1: ✅
|
||||
|
||||
report 1 ~
|
||||
- ✅ OK everything is fine
|
||||
@@ -132,7 +132,7 @@ describe('vim.health', function()
|
||||
- ✅ OK nothing to see here
|
||||
|
||||
==============================================================================
|
||||
test_plug.success2: require("test_plug.success2.health").check()
|
||||
test_plug.success2: ✅
|
||||
|
||||
another 1 ~
|
||||
- ✅ OK ok
|
||||
@@ -144,7 +144,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug.submodule: require("test_plug.submodule.health").check()
|
||||
test_plug.submodule: ✅
|
||||
|
||||
report 1 ~
|
||||
- ✅ OK everything is fine
|
||||
@@ -159,7 +159,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug.submodule_empty: require("test_plug.submodule_empty.health").check()
|
||||
test_plug.submodule_empty: 1 ❌
|
||||
|
||||
- ❌ ERROR The healthcheck report for "test_plug.submodule_empty" plugin is empty.
|
||||
]])
|
||||
@@ -185,7 +185,7 @@ describe('vim.health', function()
|
||||
- ❌ {Error:ERROR} No healthcheck found for "foo" plugin. |
|
||||
|
|
||||
{Bar: }|
|
||||
{h1:test_plug.success1: require("test_pl}|
|
||||
{h1:test_plug.success1: }|
|
||||
|
|
||||
{h2:report 1} |
|
||||
- ✅ {Ok:OK} everything is fine |
|
||||
@@ -200,7 +200,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
non_existent_healthcheck:
|
||||
non_existent_healthcheck: 1 ❌
|
||||
|
||||
- ❌ ERROR No healthcheck found for "non_existent_healthcheck" plugin.
|
||||
]])
|
||||
@@ -218,7 +218,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
test_plug.lua: require("test_plug.lua.health").check()
|
||||
test_plug.lua: ✅
|
||||
|
||||
nested lua/ directory ~
|
||||
- ✅ OK everything is ok
|
||||
@@ -236,7 +236,7 @@ describe('vim.health', function()
|
||||
n.expect([[
|
||||
|
||||
==============================================================================
|
||||
nest: require("nest.health").check()
|
||||
nest: ✅
|
||||
|
||||
healthy pack ~
|
||||
- ✅ OK healthy ok
|
||||
@@ -281,14 +281,14 @@ describe(':checkhealth window', function()
|
||||
^ |
|
||||
{14: }|
|
||||
{14: } |
|
||||
{h1:test_plug.success1: }|
|
||||
{h1:require("test_plug.success1.health").check()} |
|
||||
{h1:test_plug. }|
|
||||
{h1:success1: }|
|
||||
{h1: ✅} |
|
||||
|
|
||||
{h2:report 1} |
|
||||
- ✅ {32:OK} everything is fine |
|
||||
|
|
||||
{h2:report 2} |
|
||||
- ✅ {32:OK} nothing to see here |
|
||||
## grid 3
|
||||
|
|
||||
]],
|
||||
@@ -324,8 +324,8 @@ describe(':checkhealth window', function()
|
||||
{14: } |
|
||||
{h1:test_plug. }|
|
||||
{h1:success1: }|
|
||||
{h1:require("test_plug. }|
|
||||
{h1:success1.health").check()}|
|
||||
{h1: }|
|
||||
{h1: ✅} |
|
||||
|
|
||||
{h2:report 1} |
|
||||
- ✅ {32:OK} everything is |
|
||||
@@ -383,15 +383,15 @@ describe(':checkhealth window', function()
|
||||
^ |
|
||||
|
|
||||
|
|
||||
test_plug.success1: |
|
||||
require("test_plug.success1.health").check() |
|
||||
test_plug. |
|
||||
success1: |
|
||||
✅ |
|
||||
|
|
||||
report 1 |
|
||||
- ✅ OK everything is fine |
|
||||
|
|
||||
report 2 |
|
||||
- ✅ OK nothing to see here |
|
||||
|
|
||||
]]):format(
|
||||
top
|
||||
and [[
|
||||
|
||||
Reference in New Issue
Block a user