Skip to main content

Library - administration documentation

Here you will find the information needed for installing the library or running library's integration tests!

Also don't forget to check out developer documentation for the library!

You can check out the nugget package here.

Installing library

Using Nuget Package Manager Console

To install the library you can use Nuget Package Manager Console.

All you need to do is use command:

Install-Package CSVW-validator-lib

and you should have your validation library installed!

Using .NET

First relocate in the console to the directory containing your .csproj file. Then run following command:

dotnet add package CSVW-validator-lib

Run integration tests

The validator passes all the integration tests. You can try running the tests here!

** We use the api of W3C for testing so please do not overload their API aby running the tests multiple times! **

Docker

To run the integration tests we will again create a simple docker image and then run it. Follow these steps:

  1. Relocate to the directory CSV_Validator.
  2. Create a docker image:
docker build -t test-image -f CSVWIntegrationTests/Dockerfile .
  1. run the docker image using:
docker run test-image

You should see the similar output to:

Passed!  - Failed:     0, Passed:   283, Skipped:     0, Total:   283, Duration: 1 m 32 s - CSVWIntegrationTests.dll (net7.0)

Using .NET

This has been tested on .NET 7.0 and .NET 8.0.

To run the integration using just .NET you can follow these steps:

  1. Relocate to the directory CSVWIntegrationTests
  2. Run the following command:
dotnet test

Now you should see output similar to:

Passed!  - Failed:     0, Passed:   283, Skipped:     0, Total:   283, Duration: 1 m 19 s - CSVWIntegrationTests.dll (net7.0)