Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Team6-Digital Insight for Health
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chen Liang
Team6-Digital Insight for Health
Commits
d1300cac
Commit
d1300cac
authored
2 weeks ago
by
Chen Liang
Browse files
Options
Downloads
Patches
Plain Diff
Update build.gradle
parent
b074d19a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.gradle
+6
-19
6 additions, 19 deletions
build.gradle
with
6 additions
and
19 deletions
build.gradle
+
6
−
19
View file @
d1300cac
...
...
@@ -2,7 +2,7 @@ plugins {
id
'java'
id
'org.springframework.boot'
version
'3.3.5'
id
'io.spring.dependency-management'
version
'1.1.6'
id
'jacoco'
id
'jacoco'
// 引入 JaCoCo 插件
}
group
=
'com.cardiff.client_project'
...
...
@@ -44,24 +44,11 @@ dependencies {
testImplementation
group:
'org.seleniumhq.selenium'
,
name:
'selenium-java'
,
version:
'4.1.0'
}
tasks
.
named
(
'test'
)
{
useJUnitPlatform
()
}
jacoco
{
toolVersion
=
'0.8.7'
// 确保不会重复创建任务
tasks
.
named
(
'jacocoTestReport'
).
configure
{
// 任务配置
}
task
jacocoTestReport
(
type:
JacocoReport
)
{
dependsOn
test
reports
{
xml
.
enabled
true
html
.
enabled
true
}
sourceDirectories
=
files
(
"src/main/java"
)
classDirectories
=
files
(
"build/classes/java/main"
)
executionData
=
files
(
"build/jacoco/test.exec"
)
tasks
.
named
(
'test'
)
{
useJUnitPlatform
()
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment