Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eureka-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangguangchao
eureka-server
Commits
2815db1e
Commit
2815db1e
authored
Nov 29, 2023
by
lixinyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加单元测试
parent
ebdfba7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
pom.xml
pom.xml
+47
-0
Test.java
src/test/java/Test.java
+11
-0
No files found.
pom.xml
View file @
2815db1e
...
@@ -58,6 +58,14 @@
...
@@ -58,6 +58,14 @@
<properties>
<properties>
<package.environment>
test
</package.environment>
<package.environment>
test
</package.environment>
<jar.version>
-TEST
</jar.version>
<jar.version>
-TEST
</jar.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<!-- Sonar -->
<sonar.java.coveragePlugin>
jacoco
</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>
reuseReports
</sonar.dynamicAnalysis>
<sonar.jacoco.itReportPath>
${project.basedir}/target/jacoco.exec
</sonar.jacoco.itReportPath>
<sonar.language>
java
</sonar.language>
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
...
@@ -81,7 +89,46 @@
...
@@ -81,7 +89,46 @@
</repositories>
</repositories>
<build>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.7
</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugins>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.7
</version>
<executions>
<execution>
<id>
prepare-agent
</id>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>
report
</id>
<phase>
prepare-package
</phase>
<goals>
<goal>
report
</goal>
</goals>
</execution>
<execution>
<id>
post-unit-test
</id>
<phase>
test
</phase>
<goals>
<goal>
report
</goal>
</goals>
<configuration>
<dataFile>
target/jacoco.exec
</dataFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
...
...
src/test/java/Test.java
0 → 100644
View file @
2815db1e
import
com.brilliance.hk.EurekaServerApplication
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
(
classes
=
EurekaServerApplication
.
class
)
public
class
Test
{
@org
.
junit
.
jupiter
.
api
.
Test
public
void
testJacoco01
(){
System
.
out
.
println
(
"success"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment