From d45413a45207ed4f3d203e0888a17bff21cd6cfb Mon Sep 17 00:00:00 2001
From: Daniel Vedder <daniel.vedder@idiv.de>
Date: Thu, 22 Dec 2022 10:14:04 +0100
Subject: [PATCH] Added the files for the test suite

---
 test/crop_tests.jl       |  6 ++++++
 test/farm_tests.jl       |  6 ++++++
 test/landscape_tests.jl  |  6 ++++++
 test/nature_tests.jl     |  6 ++++++
 test/runtests.jl         | 26 ++++++++++++++++++++++++++
 test/simulation_tests.jl |  6 ++++++
 6 files changed, 56 insertions(+)
 create mode 100644 test/crop_tests.jl
 create mode 100644 test/farm_tests.jl
 create mode 100644 test/landscape_tests.jl
 create mode 100644 test/nature_tests.jl
 create mode 100755 test/runtests.jl
 create mode 100644 test/simulation_tests.jl

diff --git a/test/crop_tests.jl b/test/crop_tests.jl
new file mode 100644
index 0000000..9639990
--- /dev/null
+++ b/test/crop_tests.jl
@@ -0,0 +1,6 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### These are the tests for the crop growth model.
+###
+
+#TODO
diff --git a/test/farm_tests.jl b/test/farm_tests.jl
new file mode 100644
index 0000000..29b5dfc
--- /dev/null
+++ b/test/farm_tests.jl
@@ -0,0 +1,6 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### These are the tests for the farm model.
+###
+
+#TODO
diff --git a/test/landscape_tests.jl b/test/landscape_tests.jl
new file mode 100644
index 0000000..308603c
--- /dev/null
+++ b/test/landscape_tests.jl
@@ -0,0 +1,6 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### These are the tests for the core landscape functions.
+###
+
+#TODO
diff --git a/test/nature_tests.jl b/test/nature_tests.jl
new file mode 100644
index 0000000..b5cb2cf
--- /dev/null
+++ b/test/nature_tests.jl
@@ -0,0 +1,6 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### These are the tests for the nature model (excluding individual species).
+###
+
+#TODO
diff --git a/test/runtests.jl b/test/runtests.jl
new file mode 100755
index 0000000..bd92cde
--- /dev/null
+++ b/test/runtests.jl
@@ -0,0 +1,26 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### This is the top-level file of the Persephone test suite. Execute this to run all tests.
+###
+
+using Pkg
+Pkg.activate("..")
+
+using Persephone
+using Test
+
+@testset "Persephone Tests" begin
+    @testset "Core model" begin
+        include("landscape_tests.jl")
+        include("simulation_tests.jl")
+    end
+    @testset "Nature model" begin
+        include("nature_tests.jl")
+    end
+    @testset "Crop growth model" begin
+        include("crop_tests.jl")
+    end
+    @testset "Farm model" begin
+        include("farm_tests.jl")
+    end
+end
diff --git a/test/simulation_tests.jl b/test/simulation_tests.jl
new file mode 100644
index 0000000..4ef393c
--- /dev/null
+++ b/test/simulation_tests.jl
@@ -0,0 +1,6 @@
+### Persephone - a socio-economic-ecological model of European agricultural landscapes.
+###
+### These are the tests for the core simulation functions.
+###
+
+#TODO
-- 
GitLab