Skip to content

Commit

Permalink
Attempt to resolve snapshot testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLuypaert committed Nov 12, 2024
1 parent 2f478cf commit e0098bd
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
extra-packages: any::covr
needs: coverage

- name: Set locale to en_US.UTF-8
run: |
Sys.setlocale("LC_ALL", "en_US.UTF-8")
shell: Rscript {0}

- name: Test coverage
run: |
covr::codecov(
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_10_ss_differential_heatmap.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")


# 1. Load the merged '.csv' data frame files,
# binarize the data frame, aggregate the data frame, and make
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_11_principle_coordinate_plots.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 0. Loading required function

with_seed <- function(seed, code) {
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_1_ss_index_merge.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the path name to the ss_index_merge output folder


Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_2_ss_binarize.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load merged csv data frame files and wrong data frame
# types for testing purposes

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_3_ss_aggregate.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame and make wrong data frame types
# for testing purposes
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_4_ss_heatmap.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame and make wrong data frame types
# for testing purposes
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_5_ss_diversity.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame, aggregate the data frame, and make
# wrong data frame types for testing purposes
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_6_ss_diversity_plot.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame, aggregate the data frame, and make
# wrong data frame types for testing purposes
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_8_ss_divpart.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame, aggregate the data frame, and make
# wrong data frame types for testing purposes
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_9_ss_pairdis.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
library(testthat)
library(soundscapeR)

# Set locale before running any tests
Sys.setlocale("LC_ALL", "en_US.UTF-8")

# 1. Load the merged '.csv' data frame files,
# binarize the data frame, aggregate the data frame, and make
# wrong data frame types for testing purposes
Expand Down

0 comments on commit e0098bd

Please sign in to comment.