added thestthat
Build and deploy Roxygen2|pkgdown documentation site / build-and-deploy-documentation (push) Failing after 7s
Build and deploy Roxygen2|pkgdown documentation site / build-and-deploy-documentation (push) Failing after 7s
test files in tests/testthat/
This commit is contained in:
@@ -4,3 +4,7 @@
|
|||||||
.RData
|
.RData
|
||||||
.Ruserdata
|
.Ruserdata
|
||||||
.positai
|
.positai
|
||||||
|
.png
|
||||||
|
man
|
||||||
|
docs
|
||||||
|
pkgdown
|
||||||
|
|||||||
+3
-1
@@ -41,4 +41,6 @@ License: Commercial, all rights reserved
|
|||||||
Encoding: UTF-8
|
Encoding: UTF-8
|
||||||
LazyData: true
|
LazyData: true
|
||||||
Config/roxygen2/version: 8.0.0
|
Config/roxygen2/version: 8.0.0
|
||||||
|
Suggests:
|
||||||
|
testthat (>= 3.0.0)
|
||||||
|
Config/testthat/edition: 3
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# This file is part of the standard setup for testthat.
|
||||||
|
# It is recommended that you do not modify it.
|
||||||
|
#
|
||||||
|
# Where should you do additional test configuration?
|
||||||
|
# Learn more about the roles of various files in:
|
||||||
|
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
|
||||||
|
# * https://testthat.r-lib.org/articles/special-files.html
|
||||||
|
|
||||||
|
library(testthat)
|
||||||
|
library(DashboardApp)
|
||||||
|
|
||||||
|
test_check("DashboardApp")
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
test_that("multiplication works", {
|
||||||
|
expect_equal(2 * 2, 4)
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user