Skip to content

Commit

Permalink
run gms::codeCheck() for tests, too
Browse files Browse the repository at this point in the history
  • Loading branch information
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q committed Aug 24, 2023
1 parent 06d3f61 commit 0ed9969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ check-fix: ## Check if the GAMS code follows the coding etiquette
test: ## Test if the model compiles and runs without running a full
## scenario. Tests take about 10 minutes to run.
$(info Tests take about 10 minutes to run, please be patient)
@R_PROFILE_USER= Rscript -e 'testthat::test_dir("tests/testthat")'
@R_PROFILE_USER= Rscript -e 'invisible(gms::codeCheck(strict = TRUE)); testthat::test_dir("tests/testthat")'

test-coupled: ## Test if the coupling with MAgPIE works. Takes significantly
## longer than 60 minutes to run and needs slurm and magpie
Expand All @@ -69,4 +69,4 @@ test-full: ## Run all tests, including coupling tests and a default
@R_PROFILE_USER= TESTTHAT_RUN_SLOW=TRUE Rscript -e 'testthat::test_dir("tests/testthat")'
test-validation: ## Run validation tests, requires a full set of runs in the output folder
$(info Run validation tests, requires a full set of runs in the output folder)
@R_PROFILE_USER= TESTTHAT_RUN_SLOW=TRUE Rscript -e 'testthat::test_dir("tests/testthat/validation")'
@R_PROFILE_USER= TESTTHAT_RUN_SLOW=TRUE Rscript -e 'testthat::test_dir("tests/testthat/validation")'

0 comments on commit 0ed9969

Please sign in to comment.