Skip to main content

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_lib.
  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](CSV_Validator_lib/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)