Skip to content

Commit 7330002

Browse files
committed
Merge branch 'release/2.1.1'
2 parents 85f76c7 + d3319a6 commit 7330002

File tree

10 files changed

+37
-28
lines changed

10 files changed

+37
-28
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## [v2.1.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v2.1.1) (2020-10-15)
4+
5+
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v2.1.0...v2.1.1)
6+
7+
**Fixed bugs:**
8+
9+
- Cannot override logLevel using command line [\#161](https://github.com/radarsh/gradle-test-logger-plugin/issues/161)
10+
- JetBrains IDEA prints the escape codes instead of switching colors [\#148](https://github.com/radarsh/gradle-test-logger-plugin/issues/148)
11+
12+
**Closed issues:**
13+
14+
- Upgrade to Gradle 6.6 [\#153](https://github.com/radarsh/gradle-test-logger-plugin/issues/153)
15+
- Incorrect coverage reported by JaCoCo and Coveralls [\#152](https://github.com/radarsh/gradle-test-logger-plugin/issues/152)
16+
17+
**Merged pull requests:**
18+
19+
- Fix issue with overriding logLevel [\#169](https://github.com/radarsh/gradle-test-logger-plugin/pull/169) ([radarsh](https://github.com/radarsh))
20+
- Upgrade to Gradle 6.6.1 [\#167](https://github.com/radarsh/gradle-test-logger-plugin/pull/167) ([radarsh](https://github.com/radarsh))
21+
322
## [v2.1.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v2.1.0) (2020-06-30)
423

524
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v2.0.0...v2.1.0)
@@ -159,7 +178,6 @@
159178
- Refactor standard stream collectors into OutputCollector abstraction [\#73](https://github.com/radarsh/gradle-test-logger-plugin/pull/73) ([radarsh](https://github.com/radarsh))
160179
- Add test for ThemeType [\#71](https://github.com/radarsh/gradle-test-logger-plugin/pull/71) ([radarsh](https://github.com/radarsh))
161180
- Upgrade to Gradle 4.9 [\#70](https://github.com/radarsh/gradle-test-logger-plugin/pull/70) ([radarsh](https://github.com/radarsh))
162-
- Limit max memory available to Gradle for CircleCI builds [\#69](https://github.com/radarsh/gradle-test-logger-plugin/pull/69) ([radarsh](https://github.com/radarsh))
163181
- Add support for parallel test execution [\#66](https://github.com/radarsh/gradle-test-logger-plugin/pull/66) ([radarsh](https://github.com/radarsh))
164182

165183
## [v1.3.1](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.3.1) (2018-06-25)
@@ -172,6 +190,7 @@
172190

173191
**Merged pull requests:**
174192

193+
- Limit max memory available to Gradle for CircleCI builds [\#69](https://github.com/radarsh/gradle-test-logger-plugin/pull/69) ([radarsh](https://github.com/radarsh))
175194
- Turn off bright yellow in standard theme [\#65](https://github.com/radarsh/gradle-test-logger-plugin/pull/65) ([radarsh](https://github.com/radarsh))
176195

177196
## [v1.3.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v1.3.0) (2018-06-11)

README.md

Lines changed: 2 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.1.0'
28+
id 'com.adarshr.test-logger' version '2.1.1'
2929
}
3030
```
3131

@@ -39,7 +39,7 @@ buildscript {
3939
}
4040
}
4141
dependencies {
42-
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.0'
42+
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.1'
4343
}
4444
}
4545

gradle.properties

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

gradle/wrapper/gradle-wrapper.jar

293 Bytes
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-6.4.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fi
130130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133-
133+
134134
JAVACMD=`cygpath --unix "$JAVACMD"`
135135

136136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
5454
set JAVA_HOME=%JAVA_HOME:"=%
5555
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5656

57-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5858

5959
echo.
6060
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,29 +64,14 @@ echo location of your Java installation.
6464

6565
goto fail
6666

67-
:init
68-
@rem Get command-line arguments, handling Windows variants
69-
70-
if not "%OS%" == "Windows_NT" goto win9xME_args
71-
72-
:win9xME_args
73-
@rem Slurp the command line arguments.
74-
set CMD_LINE_ARGS=
75-
set _SKIP=2
76-
77-
:win9xME_args_slurp
78-
if "x%~1" == "x" goto execute
79-
80-
set CMD_LINE_ARGS=%*
81-
8267
:execute
8368
@rem Setup the command line
8469

8570
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8671

8772

8873
@rem Execute Gradle
89-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
9075

9176
:end
9277
@rem End local scope for the variables with windows NT shell

src/main/groovy/com/adarshr/gradle/testlogger/TestLoggerExtension.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,17 @@ class TestLoggerExtension {
201201
override(overrides, 'showSkipped', Boolean)
202202
override(overrides, 'showFailed', Boolean)
203203
override(overrides, 'showSimpleNames', Boolean)
204+
override(overrides, 'logLevel', LogLevel)
204205

205206
this
206207
}
207208

208209
private void override(Map<String, String> overrides, String name, Class type) {
209210
if (overrides.containsKey(name)) {
210-
String method = Enum.isAssignableFrom(type) ? 'fromName' : 'valueOf'
211+
String method = ThemeType.isAssignableFrom(type) ? 'fromName' : 'valueOf'
212+
String value = LogLevel.isAssignableFrom(type) ? overrides[name].toUpperCase() : overrides[name]
211213

212-
setProperty(name, type.invokeMethod(method, overrides[name]))
214+
setProperty(name, type.invokeMethod(method, value))
213215
}
214216
}
215217
}

src/test-functional/groovy/com/adarshr/gradle/testlogger/functional/AbstractFunctionalSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class AbstractFunctionalSpec extends Specification {
1616

1717
private static final String TEST_ROOT = 'src/test-functional/resources'
1818

19-
private static final String GRADLE_VERSION = '6.4.1'
19+
private static final String GRADLE_VERSION = '6.6.1'
2020

2121
@Rule
2222
TemporaryFolder temporaryFolder

src/test/groovy/com/adarshr/gradle/testlogger/TestLoggerExtensionSpec.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.adarshr.gradle.testlogger
22

33
import com.adarshr.gradle.testlogger.theme.ThemeType
4+
import org.gradle.api.logging.LogLevel
45
import org.gradle.api.tasks.testing.logging.TestLogging
56
import spock.lang.Specification
67
import spock.lang.Unroll
@@ -40,7 +41,8 @@ class TestLoggerExtensionSpec extends Specification {
4041
showFailedStandardStreams: 'false',
4142
showPassed: 'false',
4243
showSkipped: 'false',
43-
showFailed: 'false'
44+
showFailed: 'false',
45+
logLevel: 'warn'
4446
]
4547
when:
4648
def extension = new TestLoggerExtension()
@@ -57,6 +59,7 @@ class TestLoggerExtensionSpec extends Specification {
5759
!extension.showPassed
5860
!extension.showSkipped
5961
!extension.showFailed
62+
extension.logLevel == LogLevel.WARN
6063
}
6164

6265
def "combine two test extension objects"() {

0 commit comments

Comments
 (0)