-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
322: use SafeTestsets.jl r=juliasloan25 a=juliasloan25 Co-authored-by: Julia Sloan <jsloan@caltech.edu>
- Loading branch information
Showing
6 changed files
with
212 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,98 @@ | ||
include("aqua.jl") | ||
include("integrated/lsms.jl") | ||
include("standalone/Snow/parameterizations.jl") | ||
include("shared_utilities/implicit_timestepping/richards_model.jl") | ||
include("standalone/Vegetation/test_bigleaf_parameterizations.jl") | ||
include("standalone/Vegetation/canopy_model.jl") | ||
include("standalone/Vegetation/test_two_stream.jl") | ||
include("standalone/Soil/Biogeochemistry/co2_parameterizations.jl") | ||
include("standalone/Soil/Biogeochemistry/biogeochemistry_module.jl") | ||
include("standalone/Bucket/soil_bucket_tests.jl") | ||
include("standalone/Bucket/snow_bucket_tests.jl") | ||
include("standalone/Bucket/albedo_types.jl") | ||
include("standalone/Vegetation/plant_hydraulics_test.jl") | ||
include("shared_utilities/domains.jl") | ||
include("shared_utilities/file_reader.jl") | ||
include("shared_utilities/regridder.jl") | ||
include("shared_utilities/utilities.jl") | ||
include("shared_utilities/variable_types.jl") | ||
include("standalone/SurfaceWater/pond_test.jl") | ||
include("integrated/pond_soil_lsm.jl") | ||
include("integrated/soil_energy_hydrology_biogeochemistry.jl") | ||
include("standalone/Soil/climate_drivers.jl") | ||
include("standalone/Soil/soil_test_3d.jl") | ||
include("standalone/Soil/soiltest.jl") | ||
include("standalone/Soil/soil_parameterizations.jl") | ||
include("standalone/Soil/soil_bc.jl") | ||
include("standalone/Soil/runoff.jl") | ||
using SafeTestsets | ||
|
||
# Performance and code quality tests | ||
@safetestset "Aqua tests" begin | ||
include("aqua.jl") | ||
end | ||
|
||
# Integrated LSM tests | ||
@safetestset "Integrated LSM unit tests" begin | ||
include("integrated/lsms.jl") | ||
end | ||
@safetestset "Integrated pond/soil LSM tests" begin | ||
include("integrated/pond_soil_lsm.jl") | ||
end | ||
@safetestset "Integrated soil energy/hydrology/biogeochem LSM tests" begin | ||
include("integrated/pond_soil_lsm.jl") | ||
end | ||
|
||
# Shared ClimaLSM utilities tests | ||
@safetestset "Richards model implicit timestepping tests" begin | ||
include("shared_utilities/implicit_timestepping/richards_model.jl") | ||
end | ||
@safetestset "Domains module tests" begin | ||
include("shared_utilities/domains.jl") | ||
end | ||
@safetestset "FileReader module tests" begin | ||
include("shared_utilities/file_reader.jl") | ||
end | ||
@safetestset "Regridder module tests" begin | ||
include("shared_utilities/regridder.jl") | ||
end | ||
@safetestset "General utilities tests" begin | ||
include("shared_utilities/utilities.jl") | ||
end | ||
@safetestset "Variable types tests" begin | ||
include("shared_utilities/variable_types.jl") | ||
end | ||
|
||
# Standalone Bucket model tests | ||
@safetestset "Bucket albedo types tests" begin | ||
include("standalone/Bucket/albedo_types.jl") | ||
end | ||
@safetestset "Bucket snow tests" begin | ||
include("standalone/Bucket/snow_bucket_tests.jl") | ||
end | ||
@safetestset "Bucket soil tests" begin | ||
include("standalone/Bucket/soil_bucket_tests.jl") | ||
end | ||
|
||
# Standalone Snow model tests | ||
@safetestset "Snow parameterization tests" begin | ||
include("standalone/Snow/parameterizations.jl") | ||
end | ||
|
||
# Standalone Soil model tests | ||
@safetestset "Soil Biogeochemistry module tests" begin | ||
include("standalone/Soil/Biogeochemistry/biogeochemistry_module.jl") | ||
end | ||
@safetestset "Soil CO2 parameterization tests" begin | ||
include("standalone/Soil/Biogeochemistry/co2_parameterizations.jl") | ||
end | ||
@safetestset "Soil climate drivers tests" begin | ||
include("standalone/Soil/climate_drivers.jl") | ||
end | ||
@safetestset "Soil runoff tests" begin | ||
include("standalone/Soil/runoff.jl") | ||
end | ||
@safetestset "Soil boundary condition tests" begin | ||
include("standalone/Soil/soil_bc.jl") | ||
end | ||
@safetestset "Soil parameterization tests" begin | ||
include("standalone/Soil/soil_parameterizations.jl") | ||
end | ||
@safetestset "Soil 3D domain tests" begin | ||
include("standalone/Soil/soil_test_3d.jl") | ||
end | ||
@safetestset "Soil integration tests" begin | ||
include("standalone/Soil/soiltest.jl") | ||
end | ||
|
||
# Standalone Surface Water model tests | ||
@safetestset "Pond module tests" begin | ||
include("standalone/SurfaceWater/pond_test.jl") | ||
end | ||
|
||
# Standalone Vegetation model tests | ||
@safetestset "Canopy module tests" begin | ||
include("standalone/Vegetation/canopy_model.jl") | ||
end | ||
@safetestset "Canopy PlantHydraulics tests" begin | ||
include("standalone/Vegetation/plant_hydraulics_test.jl") | ||
end | ||
@safetestset "Big Leaf model tests" begin | ||
include("standalone/Vegetation/test_bigleaf_parameterizations.jl") | ||
end | ||
@safetestset "Two Stream model tests" begin | ||
include("standalone/Vegetation/test_two_stream.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
using Test | ||
|
||
using Statistics | ||
using Insolation | ||
using ClimaCore | ||
using ClimaLSM.Bucket: | ||
BucketModel, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters