aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-09-04 22:57:19 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-09-05 19:22:01 -0400
commit3c24704ac85e8f8e337d9a4a887ffccf744501b9 (patch)
tree0ca5411bbb12c3438c466e698702b6aa5dca62ea /test
parent31257b450b6d9cb434a69f158c8c3cdb5924307c (diff)
downloadrneovim-3c24704ac85e8f8e337d9a4a887ffccf744501b9.tar.gz
rneovim-3c24704ac85e8f8e337d9a4a887ffccf744501b9.tar.bz2
rneovim-3c24704ac85e8f8e337d9a4a887ffccf744501b9.zip
health.vim: Show results incrementally.
Also: - improve precision of "No healthcheck found" - fix SUGGESTIONS syntax group definition - fix indentation of SUGGESTIONS
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/health_spec.lua20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index a9665cd751..4bcaab009f 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -34,9 +34,9 @@ describe('health.vim', function()
## Baz
- WARNING: Zim
- - SUGGESTIONS:
- - suggestion 1
- - suggestion 2]]),
+ - SUGGESTIONS:
+ - suggestion 1
+ - suggestion 2]]),
result)
end)
@@ -45,9 +45,9 @@ describe('health.vim', function()
it("concatenates multiple reports", function()
helpers.execute("CheckHealth success1 success2")
helpers.expect([[
+
health#success1#check
================================================================================
-
## report 1
- SUCCESS: everything is fine
@@ -56,26 +56,30 @@ describe('health.vim', function()
health#success2#check
================================================================================
-
## another 1
- - SUCCESS: ok]])
+ - SUCCESS: ok
+ ]])
end)
it("gracefully handles broken healthcheck", function()
helpers.execute("CheckHealth broken")
helpers.expect([[
+
health#broken#check
================================================================================
- ERROR: Failed to run healthcheck for "broken" plugin. Exception:
- caused an error]])
+ caused an error
+ ]])
end)
it("gracefully handles invalid healthcheck", function()
helpers.execute("CheckHealth non_existent_healthcheck")
helpers.expect([[
+
health#non_existent_healthcheck#check
================================================================================
- - ERROR: No healthcheck found for "non_existent_healthcheck" plugin.]])
+ - ERROR: No healthcheck found for "non_existent_healthcheck" plugin.
+ ]])
end)
end)
end)