From 7c06af21fcf9ed3af43763bd0b2f4daab55861db Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Wed, 2 Sep 2020 01:12:44 +0800 Subject: [PATCH] Update codecov (#3751) --- codecov.yml | 18 ++++++++++-------- test/api/job.vader | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/codecov.yml b/codecov.yml index 356490ee6..ff6427bc2 100644 --- a/codecov.yml +++ b/codecov.yml @@ -8,13 +8,15 @@ coverage: project: default: false # disable the default status that measures entire project api: # declare a new status context "api" - target: 20% # we always want 35% coverage here - paths: "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder + target: 5% # we always want 35% coverage here + paths: + - "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder plugins: # declare a new status context "api" - target: 20% # we always want 35% coverage here - paths: "autoload/SpaceVim/plugins/" # only include coverage in "autoload/SpaceVim/api/" folder + target: 5% # we always want 35% coverage here + paths: + - "autoload/SpaceVim/plugins/" # only include coverage in "autoload/SpaceVim/api/" folder all: # declare a new status context "all" - target: 20% # we always want 35% coverage here - paths: "!tests/" # remove all files in "tests/" -ignore: - - "bundle/" # ignore folders and all its contents + target: 5% # we always want 35% coverage here + paths: + - "!tests/" # remove all files in "tests/" + - "!bundle/" # remove all files in "tests/" diff --git a/test/api/job.vader b/test/api/job.vader index c19c8a405..b4b13e849 100644 --- a/test/api/job.vader +++ b/test/api/job.vader @@ -34,7 +34,7 @@ Execute ( SpaceVim api: job ): if job.vim_job || job.nvim_job let jobid = job.start(argv,opt) call job.send(jobid, 'foo') - sleep 10m + sleep 2000m AssertEqual stdout, 'foo' AssertEqual job.status(jobid), 'run' call job.stop(jobid)