Skip to content

Commit 9162bc2

Browse files
committed
Merge branch 'release/2.1.0'
2 parents 269d5dd + aec3f98 commit 9162bc2

37 files changed

+415
-194
lines changed

CHANGELOG.md

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1-
# Change Log
1+
# Changelog
2+
3+
## [v2.1.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v2.1.0) (2020-06-30)
4+
5+
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v2.0.0...v2.1.0)
6+
7+
**Implemented enhancements:**
8+
9+
- Auto Switch Theme based on --console value and --parallel [\#149](https://github.com/radarsh/gradle-test-logger-plugin/issues/149)
10+
11+
**Fixed bugs:**
12+
13+
- Theme is defaulted to plain even when maxForks is greater than 1 [\#139](https://github.com/radarsh/gradle-test-logger-plugin/issues/139)
14+
- Plugin version 1.7.1 not working with Gradle 4.8.1 [\#138](https://github.com/radarsh/gradle-test-logger-plugin/issues/138)
15+
16+
**Closed issues:**
17+
18+
- Upgrade to Gradle 6.4.1 [\#150](https://github.com/radarsh/gradle-test-logger-plugin/issues/150)
19+
- Upgrade to Gradle 6.2 [\#143](https://github.com/radarsh/gradle-test-logger-plugin/issues/143)
20+
- Add support for kotlin-dsl [\#127](https://github.com/radarsh/gradle-test-logger-plugin/issues/127)
21+
22+
**Merged pull requests:**
23+
24+
- Upgrade to Gradle 6.4.1 [\#151](https://github.com/radarsh/gradle-test-logger-plugin/pull/151) ([radarsh](https://github.com/radarsh))
25+
- Upgrade to Gradle 6.2 [\#144](https://github.com/radarsh/gradle-test-logger-plugin/pull/144) ([radarsh](https://github.com/radarsh))
26+
- Seamlessly switch to parallel theme [\#142](https://github.com/radarsh/gradle-test-logger-plugin/pull/142) ([radarsh](https://github.com/radarsh))
27+
- Add missing inputs to "functionalTest" task [\#140](https://github.com/radarsh/gradle-test-logger-plugin/pull/140) ([theosotr](https://github.com/theosotr))
28+
- Configuration option for changing the log level [\#124](https://github.com/radarsh/gradle-test-logger-plugin/pull/124) ([rabidaudio](https://github.com/rabidaudio))
29+
30+
## [v2.0.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v2.0.0) (2019-10-10)
231

3-
## [2.0.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v2.0.0) (2019-10-10)
432
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.7.1...v2.0.0)
533

634
**Closed issues:**
@@ -19,6 +47,7 @@
1947
- Upgrade to Gradle 5.2 [\#107](https://github.com/radarsh/gradle-test-logger-plugin/pull/107) ([radarsh](https://github.com/radarsh))
2048

2149
## [v1.7.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.7.1) (2019-10-07)
50+
2251
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.7.0...v1.7.1)
2352

2453
**Closed issues:**
@@ -36,6 +65,7 @@
3665
- Clarify documentation [\#121](https://github.com/radarsh/gradle-test-logger-plugin/pull/121) ([radarsh](https://github.com/radarsh))
3766

3867
## [v1.7.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.7.0) (2019-05-29)
68+
3969
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.6.0...v1.7.0)
4070

4171
**Closed issues:**
@@ -59,6 +89,7 @@
5989
- Fix double escaping of brackets [\#108](https://github.com/radarsh/gradle-test-logger-plugin/pull/108) ([radarsh](https://github.com/radarsh))
6090

6191
## [v1.6.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.6.0) (2018-11-20)
92+
6293
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.5.0...v1.6.0)
6394

6495
**Implemented enhancements:**
@@ -83,6 +114,7 @@
83114
- Configure testlogger for each task [\#93](https://github.com/radarsh/gradle-test-logger-plugin/pull/93) ([radarsh](https://github.com/radarsh))
84115

85116
## [v1.5.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.5.0) (2018-09-08)
117+
86118
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.4.0...v1.5.0)
87119

88120
**Implemented enhancements:**
@@ -109,6 +141,7 @@
109141
- Filter test results by type [\#77](https://github.com/radarsh/gradle-test-logger-plugin/pull/77) ([radarsh](https://github.com/radarsh))
110142

111143
## [v1.4.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.4.0) (2018-07-31)
144+
112145
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.3.1...v1.4.0)
113146

114147
**Implemented enhancements:**
@@ -130,6 +163,7 @@
130163
- Add support for parallel test execution [\#66](https://github.com/radarsh/gradle-test-logger-plugin/pull/66) ([radarsh](https://github.com/radarsh))
131164

132165
## [v1.3.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.3.1) (2018-06-25)
166+
133167
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.3.0...v1.3.1)
134168

135169
**Closed issues:**
@@ -141,6 +175,7 @@
141175
- Turn off bright yellow in standard theme [\#65](https://github.com/radarsh/gradle-test-logger-plugin/pull/65) ([radarsh](https://github.com/radarsh))
142176

143177
## [v1.3.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.3.0) (2018-06-11)
178+
144179
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.2.0...v1.3.0)
145180

146181
**Implemented enhancements:**
@@ -165,6 +200,7 @@
165200
- Added support for nested JUnit5 tests. [\#55](https://github.com/radarsh/gradle-test-logger-plugin/pull/55) ([mithomas](https://github.com/mithomas))
166201

167202
## [v1.2.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.2.0) (2018-03-31)
203+
168204
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.1.2...v1.2.0)
169205

170206
**Implemented enhancements:**
@@ -188,6 +224,7 @@
188224
- Upgrade to Gradle 4.4 [\#46](https://github.com/radarsh/gradle-test-logger-plugin/pull/46) ([radarsh](https://github.com/radarsh))
189225

190226
## [v1.1.2](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.1.2) (2017-11-07)
227+
191228
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.1.1...v1.1.2)
192229

193230
**Fixed bugs:**
@@ -199,6 +236,7 @@
199236
- Erase ahead before writing every line [\#43](https://github.com/radarsh/gradle-test-logger-plugin/pull/43) ([radarsh](https://github.com/radarsh))
200237

201238
## [v1.1.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.1.1) (2017-11-06)
239+
202240
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.1.0...v1.1.1)
203241

204242
**Fixed bugs:**
@@ -210,6 +248,7 @@
210248
- Erase ahead before writing summary text [\#41](https://github.com/radarsh/gradle-test-logger-plugin/pull/41) ([radarsh](https://github.com/radarsh))
211249

212250
## [v1.1.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.1.0) (2017-11-06)
251+
213252
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.0.1...v1.1.0)
214253

215254
**Implemented enhancements:**
@@ -239,6 +278,7 @@
239278
- Fix test instability [\#24](https://github.com/radarsh/gradle-test-logger-plugin/pull/24) ([radarsh](https://github.com/radarsh))
240279

241280
## [v1.0.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.0.1) (2017-10-15)
281+
242282
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v1.0.0...v1.0.1)
243283

244284
**Implemented enhancements:**
@@ -266,6 +306,9 @@
266306
- Add Configuration for AppVeyor [\#9](https://github.com/radarsh/gradle-test-logger-plugin/pull/9) ([baynezy](https://github.com/baynezy))
267307

268308
## [v1.0.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.0.0) (2017-09-29)
309+
310+
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/577a89fd0a8f1621802527317ee0bcfbd0f3f49e...v1.0.0)
311+
269312
**Implemented enhancements:**
270313

271314
- Publish plugin [\#5](https://github.com/radarsh/gradle-test-logger-plugin/issues/5)
@@ -284,4 +327,4 @@
284327

285328

286329

287-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
330+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

CONTRIBUTING.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing
2+
3+
Thanks for considering to contribute to gradle-test-logger-plugin. Here are the house rules:
4+
5+
## Branching model
6+
7+
The project uses Git flow. It's best to install the [Git flow extensions](https://github.com/nvie/gitflow) before you get started.
8+
9+
## Commit messages
10+
11+
Try to come up with short but meaningful commit messages in an imperative tone. [How to write a Git commit message](https://chris.beams.io/posts/git-commit/) is a great starting point.
12+
13+
## Testing
14+
15+
The project uses Groovy based [Spock Framework](http://spockframework.org/spock/docs/1.3/all_in_one.html) for both unit and functional tests. Spock is an extremely expressive tool for writing tests for code written in any JVM language.
16+
17+
## Formatting
18+
19+
The project uses [`.editorconfig`](https://editorconfig.org/) for setting some basic rules. The only additional thing we ask you to do is to make sure that statements after each label in Spock tests are indented using 4 spaces as follows:
20+
21+
```groovy
22+
def "suite text"() {
23+
given:
24+
testDescriptorMock.classDisplayName >> 'ClassName'
25+
when:
26+
def actual = theme.suiteText(testDescriptorMock, testResultMock)
27+
then:
28+
actual == "ClassName${lineSeparator()}"
29+
}
30+
```
31+
32+
## Merging
33+
34+
Make sure that your rebase against develop first. Merging develop into a feature branch is discouraged. If you have several commits in your branch, squash them all into one commit as you rebase.
35+
36+
If you have totally separate units of work going into the same branch, then it's OK to have these as separate commits. For example, if you have two commits "Implement feature x" and "Upgrade jansi version" on the same feature branch, it's OK to not squash them.
37+
38+
## Releasing
39+
40+
1. `git flow release start <new version>`
41+
2. Edit gradle.properties to have the new version
42+
3. Edit README.md to have the new version
43+
4. Generate a new changelog. See [Generating a changelog](#generating-a-changelog) for more info.
44+
5. Commit all files using `git commit -am 'Release version <new version>`
45+
6. `git flow release finish <new version>`
46+
7. Tag the new release `v<new version>`
47+
8. Push to develop, master and tags using `git push origin develop && git push origin master && git push origin --tags`
48+
49+
### Generating a changelog
50+
51+
The project uses [GitHub changelog generator](https://github.com/github-changelog-generator/github-changelog-generator) to make the process of generating changelogs simpler. After installing it, run
52+
53+
```sh
54+
github_changelog_generator --token <token> --user radarsh --project gradle-test-logger-plugin --enhancement-labels feature --unreleased-label <new version> --future-release v<new version>
55+
```

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Scroll down for more themes and customisation options or visit the [screenshots
2525

2626
```groovy
2727
plugins {
28-
id 'com.adarshr.test-logger' version '2.0.0'
28+
id 'com.adarshr.test-logger' version '2.1.0'
2929
}
3030
```
3131

@@ -39,7 +39,7 @@ buildscript {
3939
}
4040
}
4141
dependencies {
42-
classpath 'com.adarshr:gradle-test-logger-plugin:2.0.0'
42+
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.0'
4343
}
4444
}
4545
@@ -72,6 +72,7 @@ testlogger {
7272
showPassedStandardStreams true
7373
showSkippedStandardStreams true
7474
showFailedStandardStreams true
75+
logLevel 'lifecycle'
7576
}
7677
```
7778

@@ -263,6 +264,17 @@ testlogger {
263264
By default all the above three flags are turned on. If you have chosen to display standard streams by setting
264265
`showStandardStreams` flag to `true`, any output produced by filtered out tests will not be displayed.
265266

267+
### Change log level
268+
269+
By default, results are output at the standard `lifecycle` [Gradle log level](https://docs.gradle.org/current/userguide/logging.html#sec:choosing_a_log_level). This can be configured with `logLevel`. For example, the following will output
270+
the results even on runs with `--quiet`.
271+
272+
```groovy
273+
testlogger {
274+
logLevel 'quiet'
275+
}
276+
```
277+
266278
### Relationship between `testlogger` and `Test.testLogging`
267279

268280
Where possible, the plugin's `testlogger` extension tries to react to equivalent properties of Gradle's `Test.testLogging`

build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@ buildscript {
55
}
66

77
plugins {
8-
id 'com.gradle.build-scan' version '2.4.2'
98
id 'groovy'
109
id 'java-gradle-plugin'
1110
id 'maven-publish'
1211
id 'idea'
1312
id 'jacoco'
1413
id 'com.gradle.plugin-publish' version '0.10.1'
15-
id 'com.github.kt3k.coveralls' version '2.8.4'
16-
}
17-
18-
buildScan {
19-
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
20-
termsOfServiceAgree = 'yes'
14+
id 'com.github.kt3k.coveralls' version '2.9.0'
2115
}
2216

2317
def thisPlugin =
@@ -91,6 +85,7 @@ test {
9185
}
9286

9387
task functionalTest(type: Test) {
88+
inputs.dir "$projectDir/src/test-functional/resources"
9489
maxParallelForks = 2
9590
testClassesDirs = sourceSets.functionalTest.output.classesDirs
9691
classpath = sourceSets.test.runtimeClasspath + sourceSets.functionalTest.runtimeClasspath

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.0.0
1+
version=2.1.0
22
group=com.adarshr
33
org.gradle.daemon=true
44
org.gradle.caching=false

gradle/coverage.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jacoco {
2-
toolVersion '0.8.2'
2+
toolVersion '0.8.5'
33
}
44

55
jacocoTestReport {

gradle/publishing.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
task sourceJar(type: Jar) {
2-
classifier = 'sources'
2+
archiveClassifier.set('sources')
33
from sourceSets.main.allSource
44
}
55

gradle/wrapper/gradle-wrapper.jar

3.22 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)