Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 2.35 KB

README.md

File metadata and controls

35 lines (30 loc) · 2.35 KB

encoder-test

Testing the encoding functionality of various security related encoders.

Quick Start

If you just want to jump to the interesting bit, here's what's in the output directory.

Building/Running locally

First generate the .NET data:

docker run --rm -it \
  -v "$PWD/dotnet:/app/dotnet" \
  -v "$PWD/encoder-test-java/src/main/resources/encodingData:/app/encoder-test-java/src/main/resources/encodingData" \
  -v "$PWD/output:/app/output" \
  --workdir /app/dotnet \
  mcr.microsoft.com/dotnet/sdk:6.0 dotnet run

Then generate the Java data and produce the reports:

docker run --rm -it -v "$PWD:/app" --entrypoint bash --workdir /app maven
mvn clean install
java -jar encoder-test-java/target/encoder-test-java-1-SNAPSHOT-jar-with-dependencies.jar
java -jar encoder-test-transform/target/encoder-test-transform-1-SNAPSHOT-jar-with-dependencies.jar
exit

The output directory will contain the results of executing the tests (JSON files) as well as the HTML comparison files. Start at index.html