slachiewicz opened a new pull request, #703:
URL: https://github.com/apache/maven-project-info-reports-plugin/pull/703
Nine integration tests only read a generated report and compare strings, so
they now run as unit tests: rendering is checked from fixture models and
fixture jars, without a Maven build, a site run or a download. The branch has
45 unit tests instead of 34 and 16 invoker ITs instead of 25; a full `-Prun-its
verify` took about 7 minutes instead of 11 (one run each; other builds shared
the machine).
Removed IT to covering test:
| Removed IT | Covering test |
|---|---|
| MPIR-242 | `LicensesReportTest#testLicenseFileEncodingIsHonoured`
(ISO-8859-5 license file, checks the character references in `licenses.html`) |
| MPIR-300 | `PluginsReportTest` (report plugin version from reporting, then
build/plugins, then pluginManagement, else `RELEASE`) |
| MPIR-407 |
`DependenciesRendererTest#licenseMappingsRenameLicensesEverywhere` (dependency
table, dependency details and license listing) and
`DependenciesReportTest#testLicenseMappingsAreReadFromTheConfiguration` (the
`licenseMappings` configuration) |
| MPIR-431 |
`DependenciesRendererTest#fileDetailsSummaryHasOneRowPerScopeAndASharedJavaVersionCell`
|
| MPIR-437 |
`DependenciesRendererTest#jarWithoutClassesShowsDashesForJavaVersion` |
| MPIR-455 |
`DependenciesRendererTest#multiReleaseJarListsRootAndVersionedRuntimes`
(multi-release jar and a jar with only a versioned `module-info.class`) |
| dependencies-java-1.7-and-1.8 |
`DependenciesRendererTest#javaVersionIsReadFromTheClassFiles` |
| MPIR-460-jar, MPIR-460-maven-plugin | `DependencyInformationReportTest`
(one test per packaging) |
The renderer tests build small jars with real class files, so the jar
analysis in `maven-shared-jar` runs as well; sizes are padded to exact lengths,
so the size and total cells are asserted exactly. `RepositoryUtils` is mocked,
so no POM is read from a repository.
Kept:
- `full-pom`, `multi-module`, `git`, `java-version`, `mpir-229`,
`minimal-pom`, `team-local-avatars`: real site runs and a smoke IT for every
report type (`full-pom` renders all of them).
- `MPIR-251`, `MPIR-349`, `MPIR-362`, `MPIR-412`, `MPIR-462`, `MPIR-473`,
`MPIR-477-*`: dependency resolution, repositories and snapshot or range
handling.
- `MPIR-375`: plugin-management report with real plugin POM resolution.
Not covered by the unit tests: the `${project.*}` parameter defaults of
`dependency-info` (the tests set the coordinates explicitly) and the Doxia site
rendering around the reports (`full-pom` and the other site ITs keep that). The
jar analysis behind the dependencies report is exercised only on synthetic
jars, not on the real artifacts the removed ITs downloaded. What is now
fixture-tested only: the Java version cells (class file majors 48 to 55), class
and package counts (one class per jar, except the multi-release and module-info
cases), and debug information (a line number table gives "Yes", none gives
"No"). No kept IT asserts those cells.
Production code is unchanged. The mock repository entries for MPIR-455 under
`src/it/mrm` went with the IT; the `cloneTo` comment in `pom.xml` still names
MPIR-455 and was left alone to avoid a conflict with open PRs that edit that
file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]