Skip to content

Commit

Permalink
ajout de quelques petites lignes aux tests (#101)
Browse files Browse the repository at this point in the history
* essai débloquage vdiffr

* plots pour covr

* tous les graphiques de test

* trois petites lignes en plus dans les tests unitaires

* master (#99)

* Correction tests pour que covr soit à 100% (#97)

* rajout des svg de tests
  • Loading branch information
arnaud-feldmann authored Feb 7, 2024
1 parent fcb263a commit 9a2b488
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/test-reView.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test_that("display_vector", {
})

test_that("get_preset", {
expect_identical(get_preset(NULL), NA)
expect_equal(get_preset(twoStepsBenchmark(turnover,construction,include.differenciation = TRUE)),1)
expect_equal(get_preset(twoStepsBenchmark(turnover,construction,include.differenciation = TRUE,
set.const = 0)),2)
Expand Down Expand Up @@ -227,6 +228,14 @@ test_that("rePort produces a report when time boundaries are set",{
unlink(temp_html)
})

test_that("reView and rePort return an error on multivariate benchmarks",
{
expect_error(rePort(twoStepsBenchmark(cbind(turnover,turnover_catering), construction)),
"univariate benchmarks")
expect_error(reView(twoStepsBenchmark(cbind(turnover,turnover_catering), construction)),
"univariate benchmarks")
})

test_that("reView-withoutset",{

# important : the package should have been rebuilt for these tests
Expand Down

0 comments on commit 9a2b488

Please sign in to comment.