erddap icon indicating copy to clipboard operation
erddap copied to clipboard

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

Open srstsavage opened this issue 2 years ago • 1 comments

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 avatar Nov 03 '23 06:11 srstsavage

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 avatar Nov 03 '23 06:11 srstsavage

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.

srstsavage avatar Aug 01 '24 19:08 srstsavage