Skip to content

Commit 142be12

Browse files
author
thill
committed
test template
1 parent dccb17f commit 142be12

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
^codecov\.yml$
12
^appveyor\.yml$
23
^\.travis\.yml$
34
^\.Rproj\.user$

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(coreCT)
3+
4+
test_check("coreCT")

tests/testthat/test-name.R

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
context("test-name")
2+
library(coreCT)
3+
4+
# test_that("fld.frq gives correct output", {
5+
# expect_equal(fld.frq(2, 1:10, units = "percent"), 0.8)
6+
# expect_equal(fld.frq(2, 1:10, units = "tides"), 9)
7+
# expect_error(fld.frq("string", 1:10))
8+
# expect_error(fld.frq(2, "string"))
9+
# expect_error(fld.frq(2, 1:10, units = "furlongs"))
10+
# })

0 commit comments

Comments
 (0)