mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-02 19:21:51 +08:00
Introduce two reactor modules that exist purely to host repository-wide test concerns: - dc3-coverage (packaging=pom) runs jacoco:report-aggregate against all contributing modules and applies a tree-wide jacoco:check rule. The aggregator excludes generated sources, deployable Application classes, POJO entity packages and the third-party modbus4j sero utilities so the percentage stays anchored on real business logic. Coverage gates start at 0% and tighten in later stages as more tests land. - dc3-e2e (packaging=jar) reserves a place for the docker-compose driven end-to-end suite delivered in stage S8. Unit and integration phases are skipped by default and only the e2e profile turns them on. Both modules are wired into the root reactor.
80 lines
2.8 KiB
XML
80 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright 2016-present the IoT DC3 original author or authors.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU Affero General Public License as
|
|
~ published by the Free Software Foundation, either version 3 of the
|
|
~ License, or (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU Affero General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Affero General Public License
|
|
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>io.github.pnoker</groupId>
|
|
<artifactId>iot-dc3</artifactId>
|
|
<version>2026.5.5</version>
|
|
</parent>
|
|
|
|
<artifactId>dc3-e2e</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<description>
|
|
End-to-end test harness that boots the iot-dc3 platform via Docker
|
|
Compose (driven by Testcontainers) and exercises the public REST and
|
|
gRPC surfaces with rest-assured. Lives outside the production reactor
|
|
so its dependencies do not leak into deployable artifacts.
|
|
</description>
|
|
|
|
<properties>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
<!-- E2E is only invoked by an explicit profile or workflow. -->
|
|
<skip.unit.tests>true</skip.unit.tests>
|
|
<skip.integration.tests>true</skip.integration.tests>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.github.pnoker</groupId>
|
|
<artifactId>dc3-common-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>testcontainers</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>e2e</id>
|
|
<properties>
|
|
<skip.unit.tests>true</skip.unit.tests>
|
|
<skip.integration.tests>false</skip.integration.tests>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|