From a0b4abdb9e0b9932f42ff99da8bc0e414f1929a9 Mon Sep 17 00:00:00 2001 From: Jared Knowles Date: Mon, 31 Oct 2022 12:39:13 -0400 Subject: [PATCH] add code coverage --- Dockerfile | 2 +- Jenkinsfile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d3a5cfa..e703fc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && mkdir -p /var/lib/shiny-server/bookmarks/shiny -RUN install2.r ggplot2 jpeg png stringr gridExtra grid testthat +RUN install2.r ggplot2 jpeg png stringr gridExtra grid testthat covr diff --git a/Jenkinsfile b/Jenkinsfile index e38c48e..09df590 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,13 @@ pipeline { ''' } } + stage('test coverage') { + steps { + sh ''' + R -e 'covr::package_coverage(".")' + ''' + } + } stage('Clean') { steps {