Files
scanpath-v1-tests/README.md
T
2026-09-19 22:55:06 +05:30

58 lines
1.7 KiB
Markdown

# Scanpath v1 Tests
> Integration and unit tests for the Javassist-backed Scanpath v1 library.
This project exercises the public scanning API provided by
[Scanpath v1](https://rprime.indroneel.co/libzero/scanpath-v1). The suite uses small, purpose-built
type hierarchies and annotations to verify discovery behavior without relying on
application-specific classes.
## 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
Tests are organized under
[`src/test/java/dux/scanpath/v1/test`](src/test/java/dux/scanpath/v1/test), with scenarios grouped
by discovery behavior.
## Requirements
- Java 17 or newer
- Gradle 9.x
- A locally installed or reachable `dux.scanpath:dux.scanpath:v1-SNAPSHOT` dependency
The build resolves dependencies from `mavenLocal()`, Maven Central, and the DuxTechnica snapshot
repository. Build and install the sibling Scanpath v1 project first when the snapshot is not
already available:
```bash
cd ../scanpath-v1
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.