From 7ba3e91dc3a0ee8b773f4b64a0b472cd68d0c504 Mon Sep 17 00:00:00 2001 From: indroneel Date: Sun, 20 Sep 2026 18:47:12 +0530 Subject: [PATCH] minor changes to readme file --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a249e06..b3dfe28 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,64 @@ -# scanpath-v2-tests +# Scanpath v2 Tests -Unit tests for the Scanpath v2 library \ No newline at end of file +> Integration and unit tests for the Scanpath v2 library. + +This project exercises the public scanning API provided by +[Scanpath v2](https://rprime.indroneel.co/libzero/scanpath-v2). The suite uses small, +purpose-built type hierarchies and annotations to verify discovery behavior without relying on +application-specific classes. + +Scanpath v2 is the successor to the Javassist-backed +[Scanpath v1](https://rprime.indroneel.co/libzero/scanpath-v1) and uses the Java Class-File API +rather than a runtime bytecode library. + +## Coverage + +The test scenarios cover: + +- Direct and indirect inheritance and interface implementations +- Class-level annotation discovery +- Field-level annotation discovery +- Method-level annotation discovery +- Package and class filtering +- Duplicate scope handling +- Positive and negative discovery cases +- Classpath scanning across directories, JAR files, and ZIP archives + +Tests are organized under +[`src/test/java/dux/scanpath/v2/test`](src/test/java/dux/scanpath/v2/test), with scenarios grouped +by discovery behavior. + +## Requirements + +- Java 25 or newer +- Gradle 9.x +- Maven 3.8 or newer when building the sibling Scanpath v2 project from source +- A locally installed or reachable `dux.scanpath:dux.scanpath:v2-SNAPSHOT` dependency + +The build resolves dependencies from `mavenLocal()`, Maven Central, and the DuxTechnica snapshot +repository. Build and install the sibling Scanpath v2 project first when the snapshot is not +already available: + +```bash +cd ../scanpath-v2 +mvn install +``` + +## Run the tests + +From this directory, run the complete JUnit Platform test suite: + +```bash +gradle clean build test +``` + +The reports are written to the following locations: + +- `build/reports/tests/test/index.html` - JUnit test report +- `build/reports/jacoco/test/html/index.html` - JaCoCo coverage report + +## License + +This project is distributed under the +[DuxTechnica Limited Use Source Code License Agreement](LICENSE). Review the license before +using or redistributing the source code. \ No newline at end of file