logpresso / CVE-2021-44228-Scanner

Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228
Apache License 2.0
850 stars 174 forks source link

Testsuite #200

Closed Afrouper closed 2 years ago

Afrouper commented 2 years ago

Hi,

I've created a little test suite for the scanning process. I used JUnit 4 (for supporting Java 7) and made a first approach. The tests are also executed via maven in maven package call. The dependencies are only used for the tests.

The JARs which are used for the tests are stripped so the size is much smaller.

jgstew commented 2 years ago

Oh neat. I was wanting to add just some sort of basic test to the automatic build CI github action for validation, but this seems like it goes much further than I was looking into.