This manual is still under development and may be subject to change.
This warning will be removed once the manual is finalized.
This document provides unit tests for the LogoClim NetLogo model. The tests validate procedure behavior and arguments to ensure correct model functionality.
C.1 Problem
Procedures can produce unexpected results and have side effects that may not be captured during the development process. This document addresses these challenges by providing pre-defined expectations for each procedure’s behavior.
Outputs were extracted in Table and Lists format, along with metadata about the model’s settings.
No Java dependencies are required. NetLogo bundles its own Java Runtime Environment (JRE), ensuring independent operation regardless of the system’s Java installation.
C.2.2 Continuous Integration
These tests use the latest release of NetLogo and are automated using GitHub Actions provided by the LogoActions project (Vartanian, 2026a). Each commit to the code repository triggers test execution, ensuring that errors are caught early in the development process.
The pipeline is fully reproducible and can be run again at any time. To ensure consistent results, the renv package (Ushey & Wickham, 2025) was used to manage and restore the R environment. See the README file in the code repository to learn how to run it.
C.3 Set the Environment
C.3.1 Load Packages
Code
library(cli)library(dplyr)#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, unionlibrary(here)library(logolink)library(magrittr)library(testthat)#> #> Attaching package: 'testthat'#> The following objects are masked from 'package:magrittr':#> #> equals, is_less_than, not
C.3.2 Set Initial Variables
Setting the JAVA_TOOL_OPTIONS is optional, but recommended to avoid unnecessary messages from the Java Media Framework.
Wilensky, U. (1999). NetLogo [Computer software]. Center for Connected Learning; Computer-Based Modeling, Northwestern University. http://ccl.northwestern.edu/netlogo/