ARC validation packages for avpr.nfdi4plants.org maintained by DataPLANT. The reason for this repo is to have a properly structured and unit tested space for the packages that the DataPLANT team members maintain themselves.
Validation packages are executed in appropriate ARC fixtures placed in tests/fixtures
.
Test output is then subject to unit testing.
ArcPrototype is a submodule in /tests/fixtures/ folder. When cloning the repo it will be empty.
In project root:
git pull --recurse-submodules
In project root:
dotnet build
In project root:
dotnet test
- Run the validation package once and make sure that the output matches the expected result
- Copy the
validationSummary.json
from<arcPath>/.arc-results/
to<root>/tests/fixtures/validationSummary/<packageName>/<version>/<nameOfTestArc>
- Do the same for
validationReport.xml
- Create a new file according to the new package in the test project in the format
<packageName>@<version>.fs
, e.g.invenio@1.2.3.fs
- Use the structure and types from existing files, copy them and refactor them accordingly
- Create respective in-memory validation results in
ReferenceObjects.fs