ERDDAP / erddap

ERDDAP is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP is a Free and Open Source (Apache and Apache-like) Java Servlet from NOAA NMFS SWFSC Environmental Research Division (ERD).
Creative Commons Zero v1.0 Universal
84 stars 58 forks source link

Alter pom.xml to stage war in target/war-staging for test execution #116

Closed srstsavage closed 2 months ago

srstsavage commented 11 months ago

Also demonstrate altering setup.xml values to set up suitable test values, add simple example tests, and separate execution of tests with remote dependencies to a separate maven profile.

srstsavage commented 11 months ago

This PR was created mainly to inform discussion on how Axiom handles adding junit tests to the existing upstream ERDDAP codebase with minimal modifications: stage the build assets in a directory structure simulating the Tomcat environment so that assumptions about relative locations etc are met, and altering a setup.xml file enough to allow ERDDAP (EDStatic) to initialize.

srstsavage commented 2 months ago

Closing this PR as it was meant to demonstrate one possible approach for minimal refactoring to accommodate test classes. jUnit tests were added starting mostly in https://github.com/ERDDAP/erddap/pull/142.

Approaches in this PR can be revisited as needed, but no need to keep this open IMO.