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:
- Relocate to the directory CSV_Validator_lib.
- Create a docker image:
docker build -t test-image -f CSVWIntegrationTests/Dockerfile .
- 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:
- Relocate to the directory
[CSVWIntegrationTests](CSV_Validator_lib/CSVWIntegrationTests)
- 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)