Skip to content

Commit 48fcfb0

Browse files
committed
Set up infrastructure for testing
1 parent 634a65e commit 48fcfb0

7 files changed

+27
-2
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
^\.Rproj\.user$
99
^\.github$
1010
^appveyor\.yml$
11+
^codecov\.yml$

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
language: r
2+
3+
after_success:
4+
- Rscript -e 'covr::codecov()'

DESCRIPTION

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ Imports:
1919
scales,
2020
usethis
2121
Suggests:
22-
knitr,
23-
rmarkdown,
22+
knitr,
23+
rmarkdown,
24+
covr,
25+
testthat
2426
VignetteBuilder:
2527
knitr,
2628
rmarkdown

README.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ knitr::opts_chunk$set(
1919
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
2020
[![Build Status](https://img.shields.io/travis/mcguinlu/robvis.svg?label=build&logo=travis&branch=master)](https://travis-ci.org/mcguinlu/robvis)
2121
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/mcguinlu/robvis?branch=master&svg=true)](https://ci.appveyor.com/project/mcguinlu/robvis)
22+
[![Codecov test coverage](https://codecov.io/gh/mcguinlu/robvis/branch/master/graph/badge.svg)](https://codecov.io/gh/mcguinlu/robvis?branch=master)
2223
[![metaverse Identifier](https://img.shields.io/static/v1.svg?label=Part%20of%20the&message=metaverse&color=informational)](https://www.github.com/rmetaverse/metaverse)
2324

2425

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.re
1010
Status](https://img.shields.io/travis/mcguinlu/robvis.svg?label=build&logo=travis&branch=master)](https://travis-ci.org/mcguinlu/robvis)
1111
[![AppVeyor Build
1212
Status](https://ci.appveyor.com/api/projects/status/github/mcguinlu/robvis?branch=master&svg=true)](https://ci.appveyor.com/project/mcguinlu/robvis)
13+
[![Codecov test
14+
coverage](https://codecov.io/gh/mcguinlu/robvis/branch/master/graph/badge.svg)](https://codecov.io/gh/mcguinlu/robvis?branch=master)
1315
[![metaverse
1416
Identifier](https://img.shields.io/static/v1.svg?label=Part%20of%20the&message=metaverse&color=informational)](https://www.github.com/rmetaverse/metaverse)
1517

codecov.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
comment: false
2+
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
target: auto
8+
threshold: 1%
9+
patch:
10+
default:
11+
target: auto
12+
threshold: 1%

tests/testthat.R

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
library(testthat)
2+
library(robvis)
3+
4+
test_check("robvis")

0 commit comments

Comments
 (0)