From 8804de257b296ed268ed94443efa2de6e4ab8fa0 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 10 Jun 2019 09:55:24 +0800 Subject: [PATCH] chore: Prepare for 0.18.0 (#721) --- CHANGELOG.md | 61 +++++++++++-------- README.md | 3 + java-extension/build-tools/pom.xml | 2 +- .../META-INF/MANIFEST.MF | 2 +- .../com.microsoft.java.test.plugin/pom.xml | 2 +- .../com.microsoft.java.test.runner/pom.xml | 2 +- java-extension/pom.xml | 2 +- package-lock.json | 43 +++++++++---- package.json | 4 +- 9 files changed, 77 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7920bded..b7d44c3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,46 +4,57 @@ All notable changes to the "vscode-java-test" extension will be documented in th The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.18.0 - 2019-06-11 +### Added +- Support automatically show the test report after execution. [#673](https://github.com/microsoft/vscode-java-test/issues/673) +- Support JUnit 5 `@Nested` annotation. [#685](https://github.com/microsoft/vscode-java-test/issues/685) + +### Fixed +- [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+label%3Abug+milestone%3A0.18.0+is%3Aclosed) + ## 0.17.0 - 2019-05-22 ### Added -Support Junit 5 TestFactory annotation. [#644](https://github.com/microsoft/vscode-java-test/issues/644) +- Support Junit 5 TestFactory annotation. [#644](https://github.com/microsoft/vscode-java-test/issues/644) ### Changed -Automatically add "--enable-preview" to vmargs when necessary. [#669](https://github.com/microsoft/vscode-java-test/issues/669) +- Automatically add "--enable-preview" to vmargs when necessary. [#669](https://github.com/microsoft/vscode-java-test/issues/669) ### Fixed - [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.17.0) ## 0.16.0 - 2019-04-10 -## Added + +### Added - Add a new command `Java: Migrate Deprecated 'launch.test.json'` to help migrate the `launch.test.json` files. [PR#664](https://github.com/Microsoft/vscode-java-test/pull/664) -## Removed +### Removed - Stop supporting `launch.test.json`. [#650](https://github.com/Microsoft/vscode-java-test/issues/650) -## Fixed +### Fixed - Encoding issue for the Test Runner. [PR#662](https://github.com/Microsoft/vscode-java-test/pull/662) - Can resolve the classpath of the invisible project. [#348](https://github.com/Microsoft/vscode-java-test/issues/348) ## 0.15.1 - 2019-03-19 -## Fixed + +### Fixed - [Bugs fixed](https://github.com/Microsoft/vscode-java-test/issues?q=is%3Aissue+milestone%3A0.15.1+is%3Aclosed+label%3Abug) ## 0.15.0 - 2019-03-11 -## Added + +### Added - Support JUnit 4 `@RunWith` annotation. [#272](https://github.com/Microsoft/vscode-java-test/issues/272) - Support JUnit 4 `@Theory` annotation. [#628](https://github.com/Microsoft/vscode-java-test/issues/628) - Support JUnit 5 `@RepeatedTest` annotation. [#594](https://github.com/Microsoft/vscode-java-test/issues/594) -## Fixed +### Fixed - [Bugs fixed](https://github.com/Microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.15.0+label%3Abug) ## 0.14.1 - 2019-02-19 -## Added +### Added - Support ${workspaceFolder} in 'vmargs', 'args' and the value of each entry in 'env' in the test configurations. [#602](https://github.com/Microsoft/vscode-java-test/issues/602) -## Fixed +### Fixed - SecurityException when running JUnit 5 tests. [#477](https://github.com/Microsoft/vscode-java-test/issues/477) - Wrong order of arguments passing to Test Runner. [#592](https://github.com/Microsoft/vscode-java-test/issues/592) - Fail to resolve configurations which contain ${workspaceFolder}. [#599](https://github.com/Microsoft/vscode-java-test/issues/599) @@ -51,14 +62,14 @@ Automatically add "--enable-preview" to vmargs when necessary. [#669](https://gi ## 0.14.0 - 2019-01-21 -## Added +### Added - Add the log level setting. [#555](https://github.com/Microsoft/vscode-java-test/issues/555) - Navigate to the source code from the test explorer. [#558](https://github.com/Microsoft/vscode-java-test/issues/558) -## Changed +### Changed - Redesign the user experience of running tests with configurations. [More details](https://aka.ms/java-test-config) [#524](https://github.com/Microsoft/vscode-java-test/issues/524) -## Fixed +### Fixed - Fix the bug that test scope is wrong when triggering tests from inner class level. [#411](https://github.com/Microsoft/vscode-java-test/issues/411) - Fix the bug that tests which contain inner class will be skipped if triggered from the test explorer. [#460](https://github.com/Microsoft/vscode-java-test/issues/460) - Improve the test output format. [#505](https://github.com/Microsoft/vscode-java-test/issues/505) @@ -66,58 +77,58 @@ Automatically add "--enable-preview" to vmargs when necessary. [#669](https://gi ## 0.13.0 - 2018-12-27 -## Added +### Added - Add Chinese language support. [#437](https://github.com/Microsoft/vscode-java-test/issues/437) -## Changed +### Changed - Use webpack to improve the extension startup time. [#495](https://github.com/Microsoft/vscode-java-test/issues/495) - Change the activation events of the extension. [#516](https://github.com/Microsoft/vscode-java-test/issues/516) - Change the style of the test report. [#517](https://github.com/Microsoft/vscode-java-test/issues/517) -## Fixed +### Fixed - Fix the bug that test explorer will keep refreshing when opening a large project. [#461](https://github.com/Microsoft/vscode-java-test/issues/461) - Fix several bugs that cause the extension fails to run test cases. ([#134](https://github.com/Microsoft/vscode-java-test/issues/134), [#488](https://github.com/Microsoft/vscode-java-test/issues/488), [#504](https://github.com/Microsoft/vscode-java-test/issues/504), [#515](https://github.com/Microsoft/vscode-java-test/issues/515)) ## 0.12.0 - 2018-12-10 -## Added +### Added - Add a way to persist test logs into log files. [#452](https://github.com/Microsoft/vscode-java-test/issues/452) - Add @DisplayName support in the test report for JUnit 5. [#446](https://github.com/Microsoft/vscode-java-test/issues/446) - Add @ParameterizedTest support for JUnit 5. [#107](https://github.com/Microsoft/vscode-java-test/issues/107) -## Changed +### Changed - Improve the test report page. ([#397](https://github.com/Microsoft/vscode-java-test/issues/397), [#486](https://github.com/Microsoft/vscode-java-test/issues/486), [#489](https://github.com/Microsoft/vscode-java-test/issues/489)) - Change the foreground color of the status bar items. [#467](https://github.com/Microsoft/vscode-java-test/issues/467) -## Fixed +### Fixed - Fix the bug that test runners will run forever. [#482](https://github.com/Microsoft/vscode-java-test/issues/482) ## 0.11.1 - 2018-11-26 -## Added +### Added - Add JUnit 5's @DisplayName support in test explorer. (Thanks for [@BaerMitUmlaut](https://github.com/BaerMitUmlaut)) -## Fixed +### Fixed - "Cannot read property 'indexOf' of undefined" bug when running JUnit 5 tests. [#455](https://github.com/Microsoft/vscode-java-test/issues/455) - Will run all tests in class if triggering test from method level in test explorer. [#441](https://github.com/Microsoft/vscode-java-test/issues/441) - Cannot run tests when the project is a multi-module Maven project. [#443](https://github.com/Microsoft/vscode-java-test/issues/443) ## 0.11.0 - 2018-11-09 -## Added +### Added - Add TestNG support. -## Changed +### Changed - Test explorer change to lazy-load mechanism. - Always resolve the classpath before running test jobs - no need to trigger `Refresh Classpath` anymore. ## 0.10.0 - 2018-10-10 -## Changed +### Changed - Sort packages alphabetically in Test Explorer. [#310](https://github.com/Microsoft/vscode-java-test/issues/310) - Get JAVA_HOME location through calling the API exposed by the Java Language Server. [#319](https://github.com/Microsoft/vscode-java-test/issues/319) -## Fixed +### Fixed - Fix a bug that code lenses are not in the correct place. [#36](https://github.com/Microsoft/vscode-java-test/issues/36) ## 0.9.0 - 2018-09-20 diff --git a/README.md b/README.md index 5fd6331a..0f35c7fd 100644 --- a/README.md +++ b/README.md @@ -100,12 +100,15 @@ The [Java Test Runner](https://marketplace.visualstudio.com/items?itemName=vscja - You can navigate to the source location of the target test case by clicking the navigate button. +> Note: You can use `java.test.report.showAfterExecution` to configure whether to automatically show the test report after execution. By default, it will be shown when there are failed tests. + ## Settings | Setting Name | Description | Default Value | |---|---|---| | `java.test.report.position` | Specify where to show the test report. Supported values are: `sideView`, `currentView`. | `sideView` | +| `java.test.report.showAfterExecution` | Specify if the test report will automatically be shown after execution. Supported values are: `always`, `onFailure`, `never`. | `onFailure` | | `java.test.log.level` | Specify the level of the test logs. Supported values are: `error`, `info`, `verbose`. | `info` | | `java.test.config` | Specify the configuration for the test cases to run with. [More details](https://aka.ms/java-test-config). | `{}` | | `java.test.defaultConfig` | Specify the name of the default test configuration. | `""` | diff --git a/java-extension/build-tools/pom.xml b/java-extension/build-tools/pom.xml index 3fe00a88..c006613d 100644 --- a/java-extension/build-tools/pom.xml +++ b/java-extension/build-tools/pom.xml @@ -7,7 +7,7 @@ com.microsoft.java.test parent - 0.17.0 + 0.18.0 com.microsoft.java.test test-runner-build-tools diff --git a/java-extension/com.microsoft.java.test.plugin/META-INF/MANIFEST.MF b/java-extension/com.microsoft.java.test.plugin/META-INF/MANIFEST.MF index 6ee40528..e1d9cf35 100644 --- a/java-extension/com.microsoft.java.test.plugin/META-INF/MANIFEST.MF +++ b/java-extension/com.microsoft.java.test.plugin/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: com.microsoft.java.test.plugin Bundle-SymbolicName: com.microsoft.java.test.plugin;singleton:=true -Bundle-Version: 0.17.0 +Bundle-Version: 0.18.0 Bundle-Activator: com.microsoft.java.test.plugin.util.JUnitPlugin Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Import-Package: org.eclipse.jdt.core, diff --git a/java-extension/com.microsoft.java.test.plugin/pom.xml b/java-extension/com.microsoft.java.test.plugin/pom.xml index 32d0cb8b..4c3988bc 100644 --- a/java-extension/com.microsoft.java.test.plugin/pom.xml +++ b/java-extension/com.microsoft.java.test.plugin/pom.xml @@ -5,7 +5,7 @@ com.microsoft.java.test parent - 0.17.0 + 0.18.0 com.microsoft.java.test.plugin eclipse-plugin diff --git a/java-extension/com.microsoft.java.test.runner/pom.xml b/java-extension/com.microsoft.java.test.runner/pom.xml index 2a9629f7..e39f0826 100644 --- a/java-extension/com.microsoft.java.test.runner/pom.xml +++ b/java-extension/com.microsoft.java.test.runner/pom.xml @@ -4,7 +4,7 @@ com.microsoft.java.test parent - 0.17.0 + 0.18.0 com.microsoft.java.test.runner jar diff --git a/java-extension/pom.xml b/java-extension/pom.xml index 050ddf25..ba842de6 100644 --- a/java-extension/pom.xml +++ b/java-extension/pom.xml @@ -4,7 +4,7 @@ com.microsoft.java.test parent ${base.name} :: Parent - 0.17.0 + 0.18.0 pom Java Test Runner diff --git a/package-lock.json b/package-lock.json index 730f0b64..0173cf8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vscode-java-test", - "version": "0.17.0", + "version": "0.18.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3191,7 +3191,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -3212,12 +3213,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3232,17 +3235,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3359,7 +3365,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3371,6 +3378,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3385,6 +3393,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3392,12 +3401,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3416,6 +3427,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3503,7 +3515,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3515,6 +3528,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3600,7 +3614,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3636,6 +3651,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3655,6 +3671,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3698,12 +3715,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/package.json b/package.json index ce95b606..e50f86e1 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": { "url": "https://github.com/Microsoft/vscode-java-test" }, - "version": "0.17.0", + "version": "0.18.0", "publisher": "vscjava", "bugs": { "url": "https://github.com/Microsoft/vscode-java-test/issues" @@ -46,7 +46,7 @@ "main": "./dist/extension", "contributes": { "javaExtensions": [ - "./server/com.microsoft.java.test.plugin-0.17.0.jar" + "./server/com.microsoft.java.test.plugin-0.18.0.jar" ], "views": { "test": [