Skip to content

Commit

Permalink
Renaming and annotating of test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie-Laure DELIGNETTE-MULLER committed Sep 25, 2024
1 parent 92726ec commit 99a9385
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 32 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/testAIC.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testAIC")
test_that("Testof the impact of the three information criteria", {
test_that("Test of the impact of the three information criteria", {
skip_on_cran()

### test on microarray data ######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
context("bmdcalc_BMD")
test_that("bmdcalc works as expected on the BMD results",
{
skip_on_cran()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
context("drcfit_model")
test_that("drcfit works as expected on the model results",
{
skip_on_cran()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
context("itemselect_count")
test_that("itemselect works as expected on the number of selected probes",
{
skip_on_cran()
Expand Down
5 changes: 2 additions & 3 deletions tests/testthat/testbmdcalc.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testbmdcalc")
test_that("testbmdcalc", {
test_that("test the impact of ratio2switchinlog and minBMD", {
skip_on_cran()

# Impact of ratio2switchinlog and minBMD on a toy example
Expand Down Expand Up @@ -31,7 +30,7 @@ test_that("testbmdcalc", {
r$minBMD

# bootstrap after forcing minBMD to a high value
# without anay interest, but just to test bmdboot
# without any interest, but just to test bmdboot
(r <- bmdcalc(f, minBMD = 0.3))
(b <- bmdboot(r, niter = 100)) # with a non reasonable value for niter
b$res
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/testbmdplotwithgradient.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testbmdplotwithgradient")
test_that("testbmdplotwithgradient", {
test_that("test the bmdplotwithgradient function", {
skip_on_cran()

# (1) Plot of BMD values with color dose-response gradient
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/testplotfit.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testbmdplotfit")
test_that("testbmdplotfit", {
test_that("test function to plot the fits and the BMD values on those fits", {
skip_on_cran()

niterboot <- 25
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/testresidualtests.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testresidualtests")
test_that("testresidualtests", {
test_that("test the comportment of tests on residuals", {
skip_on_cran()

IC <- "AICc"
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/testscaling.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("testresidualtests")
test_that("test scaling on curvesplot and bmdplotwithgradient", {
test_that("test the impact of the scaling on curvesplot and bmdplotwithgradient", {
skip_on_cran()

# A toy example on a very small subsample of a microarray data set)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("select_groups")
test_that("select_groups",{
test_that("test the use of selectgroups() before a sensitivity plot",{
skip_on_cran()

# (1) An example from data published by Larras et al. 2020
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/testsensitivityplot.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("sensitivityplot")
test_that("sensitivityplot", {
test_that("test sensitivityplot()", {
skip_on_cran()

# (1) An example from data published by Larras et al. 2020
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
context("examplewithNAvalues")
test_that("Test DRomics on datasets with NA values, possible especially for apical data", {
skip_on_cran()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("examplewithRNAseq")
test_that("examplewithRNAseq", {
test_that("Test DRomics on RNAseq data", {
skip_on_cran()

# importation and check of RNAseq data and normalization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("examplewithanchoringdata")
test_that("examplewithanchoringdata", {
test_that("Test DRomics on anchoring data", {
skip_on_cran()

# importation and check of apical anchoring data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("examplewithinsitudata")
test_that("Test DRomics on datasets without replicates and without control data", {
test_that("Test DRomics on in situ data", {
skip_on_cran()

niterboot <- 25
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("examplewithametabolomicdata")
test_that("examplewithametabolomicdata", {
test_that("Test DRomics on metabolomic data", {
skip_on_cran()

# importation and check of metabolomic data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
context("examplewithametabolomicdata")
test_that("examplewithametabolomicdata", {
test_that("Test DRomics on microarray data", {
skip_on_cran()

# importation and check of data and normalization if needed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
context("examplewithnoreplicate")
test_that("Test DRomics on datasets without replicates and without control data", {
skip_on_cran()

Expand Down

0 comments on commit 99a9385

Please sign in to comment.