Skip to content

Commit

Permalink
list
Browse files Browse the repository at this point in the history
  • Loading branch information
之剑 committed Aug 26, 2016
1 parent 1bcd4b9 commit a660e84
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
24 changes: 19 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
<version>3.2.0</version>
</dependency>

<!--
devtools可以实现页面热部署(即页面修改后会立即生效,这个可以直接在application.properties文件中配置spring.thymeleaf.cache=false来实现),
实现类文件热部署(类文件修改后不会立即生效),实现对属性文件的热部署。
即devtools会监听classpath下的文件变动,并且会立即重启应用(发生在保存时机),注意:因为其采用的虚拟机机制,该项重启是很快的
-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-devtools</artifactId>-->
<!--<optional>true</optional>&lt;!&ndash; optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 &ndash;&gt;-->
<!--</dependency>-->


</dependencies>

<build>
Expand Down Expand Up @@ -140,10 +152,6 @@
</launcher>
</launchers>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<!-- spring热部署-->
<dependency>
Expand All @@ -152,7 +160,13 @@
<version>1.2.6.RELEASE</version>
</dependency>
</dependencies>

</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--<configuration>-->
<!--<fork>true</fork>&lt;!&ndash; 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart &ndash;&gt;-->
<!--</configuration>-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
31 changes: 28 additions & 3 deletions src/main/resources/templates/httpreport/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,32 @@ <h1>

"categoryField": "id", // 横坐标

"valueAxes": [{
"id": "a1",
"title": "用例总数",
"gridAlpha": 0,
"axisAlpha": 0
}, {
"id": "a2",
"title": "",
"position": "right",
"gridAlpha": 0,
"axisAlpha": 0,
"labelsEnabled": false
}, {
"id": "a3",
"title": "失败数",
"position": "right",
"gridAlpha": 0,
"axisAlpha": 0,
"inside": true,
}],

"graphs": [{
"id": "g1",
"valueField": "totalCases",
"title": "用例总数",
"valueAxis": "a1",
"type": "column",
"fillAlphas": 0.9,
"balloonText": "用例数: [[value]] ",
Expand All @@ -85,6 +107,7 @@ <h1>
}, {
"id": "g2",
"valueField": "rate",
"valueAxis": "a2",
"classNameField": "bulletClass",
"title": "通过率",
"type": "line",
Expand All @@ -93,11 +116,11 @@ <h1>
"legendValueText": "[[value]]%",
"descriptionField": "",
"bullet": "round",
"bulletSizeField": "",
"bulletSizeField": "[[rate/10]]",
"bulletBorderColor": "#2AB4BE",
"bulletBorderAlpha": 1,
"bulletBorderThickness": 2,
"bulletColor": "#2AB4BE",
"bulletColor": "#2AB499",
"labelText": "[[rate]]%",
"labelPosition": "right",
"balloonText": "[[value]]",
Expand All @@ -106,13 +129,15 @@ <h1>
}, {
"id": "g3",
"title": "失败数",
"valueAxis": "a3",
"valueField": "failed",
"type": "line",
"lineColor": "#f36a5a",
"balloonText": "[[value]]",
"lineThickness": 1.6,
"legendValueText": "[[value]] ",
"bullet": "round",
"bullet": "square",
"bulletSizeField": "failed",
"bulletBorderColor": "#f36a5a",
"bulletBorderThickness": 1,
"bulletBorderAlpha": 1,
Expand Down

0 comments on commit a660e84

Please sign in to comment.