Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5940a18
fix: Improve the accessibility of opening document (#1129)
jdneo Jan 26, 2021
c0da65f
fix: Improve the accessibility of the test report (#1130)
jdneo Jan 26, 2021
a8cae0d
refactor: Leverage test finder for test discovery (#1131)
jdneo Jan 27, 2021
68278a1
fix: Cannot navigate to source for JUnit4 parameterized tests (#1135)
jdneo Feb 1, 2021
80b8bf7
chore: Initialize GitHub Actions (#1137)
jdneo Feb 2, 2021
02cef16
chore: Prepare for 0.28.0 (#1132)
jdneo Feb 2, 2021
1ebc033
feat: Add welcome view when no folder opened (#1141)
jdneo Feb 26, 2021
07069dc
chore: Apply the new extension logo (#1144)
CsCherrYY Mar 1, 2021
57191b5
fix: Cannot run tests from a package root (#1146)
jdneo Mar 1, 2021
593609e
chore: Prepare 0.28.1 (#1147)
jdneo Mar 2, 2021
fc09c1c
chore: Apply 256*256 extension logo (#1148)
CsCherrYY Mar 3, 2021
d8adb52
chore(deps): bump pug from 2.0.4 to 3.0.1 (#1150)
dependabot[bot] Mar 3, 2021
33ea4ce
chore: move 'pug' into dev-dependencies (#1151)
jdneo Mar 3, 2021
6bdfe46
chore: Adopt the TAS client (#1155)
jdneo Mar 10, 2021
1a5ed05
chore: Adopt new APIs from vscode-tas-client (#1165)
jdneo Apr 6, 2021
36d44e2
fix: Always show last execution result when click show results from c…
jdneo Apr 8, 2021
406e9f8
chore: Update npm depndencies (#1169)
jdneo Apr 8, 2021
39602e7
test: Refactor the test code (#1170)
jdneo Apr 9, 2021
1652e46
feat: Support generate test methods in a test Java file (#1173)
jdneo Apr 21, 2021
483faa5
refactor: Use a metadata class to store the methods information (#1176)
jdneo Apr 21, 2021
e78bb34
fix: Add static modifier for Junit 4 & 5's before/afterClass methods …
jdneo Apr 23, 2021
e0de967
refactor: Decouple the codelens provider and test file watchers (#1178)
jdneo Apr 23, 2021
c6d8452
fix: Only show 'generate tests' in test source files (#1179)
jdneo Apr 25, 2021
f6119f4
chore: Prepare for 0.29.0 (#1180)
jdneo Apr 25, 2021
dd0b80b
fix: Display more friendly options when generating tests (#1185)
jdneo Apr 27, 2021
cd83cf9
fix: Generated test methods reduced the visibility of the inherited m…
jdneo Apr 28, 2021
cf7bc55
adopt workspaceTrust in package.json (#1186)
Eskibear Apr 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

- name: Setup Build Environment
run: |
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12

- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint

- name: Build OSGi bundle
run: npm run build-plugin

- name: Test extension
run: DISPLAY=:99 npm test

- name: Print language server Log if job failed
if: ${{ failure() }}
run: find $HOME/.config/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;

windows:
name: Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12

- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint

- name: Build OSGi bundle
run: npm run build-plugin

# TODO: Enable the windows build after figure out why it cannot run tests
# - name: Test extension
# run: npm test

- name: Print language server Log if job failed
if: ${{ failure() }}
run: Get-ChildItem -Path $env:APPDATA/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log | cat

darwin:
name: macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 12

- name: Install Node.js modules
run: npm install

- name: Lint
run: npm run lint

- name: Build OSGi bundle
run: npm run build-plugin

- name: Test extension
run: npm test

- name: Print language server Log if job failed
if: ${{ failure() }}
run: find $HOME/Library/Application\ Support/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

14 changes: 2 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"projectName": "com.microsoft.java.test.plugin",
},
{
"name": "Launch Tests (webpack) - Maven JUnit4 Code Lens",
"name": "Launch Tests (webpack) - Maven JUnit",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["${workspaceFolder}/test/test-projects/junit4", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/dist/test/maven-junit4-suite" ],
"args": ["${workspaceFolder}/test/test-projects/junit", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/dist/test/maven-junit-suite" ],
"sourceMaps": true,
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
"preLaunchTask": "npm: compile"
Expand All @@ -43,16 +43,6 @@
"sourceMaps": true,
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
"preLaunchTask": "npm: compile"
},
{
"name": "Launch Tests (webpack) - Gradle JUnit5",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["${workspaceFolder}/test/test-projects/junit5", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/dist/test/gradle-junit5-suite" ],
"sourceMaps": true,
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
"preLaunchTask": "npm: compile"
}
]
}
1 change: 0 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ test/**
src/**
**/*.map
.gitignore
.travis.yml
tsconfig.json
tslint.json
package-lock.json
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ 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.29.0
### Added
- Support new Source Action: `Generate Tests...` in the test source files. [#1172](https://github.com/microsoft/vscode-java-test/issues/1172)

### Fixed
- [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.29.0)

## 0.28.1
### Added
- Add welcome view in Test explorer when there is no folders opened. [PR#1141](https://github.com/microsoft/vscode-java-test/pull/1141)

### Changed
- Apply the new extension icon. [PR#1144](https://github.com/microsoft/vscode-java-test/pull/1144)

### Fixed
- [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.28.1)

## 0.28.0
### Added
- Support running tests from the Java Project explorer for Maven and Gradle projects. [PR#1125](https://github.com/microsoft/vscode-java-test/pull/1125)

### Changed
- Improve the accessibility of the test status bar item. [#1126](https://github.com/microsoft/vscode-java-test/issues/1126)
- improve the accessibility of the test report page. [#1128](https://github.com/microsoft/vscode-java-test/issues/1128)
- Opening files from the `Test` explorer now has the same experience as the `File` explorer. [PR#1129](https://github.com/microsoft/vscode-java-test/pull/1129)

### Fixed
- [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.28.0)

## 0.27.0
### Changed
- Change the scope of the setting `java.test.report.showAfterExecution` to `window`. [#1104](https://github.com/microsoft/vscode-java-test/issues/1104)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
> Run and debug Java test cases in Visual Studio Code

<p align="center">
<img src="https://raw.githubusercontent.com/Microsoft/vscode-java-test/master/resources/logo.png" width="150" height="150" alt="">
<img src="https://raw.githubusercontent.com/Microsoft/vscode-java-test/master/resources/logo.png" width="128" height="128" alt="">
</p>
<p align="center">
<a href="https://travis-ci.org/microsoft/vscode-java-test/">
<img src="https://img.shields.io/travis/microsoft/vscode-java-test?style=flat-square" alt="">
<a href="https://github.com/microsoft/vscode-java-test/actions?query=workflow%3ACI+branch%3Amaster">
<img src="https://img.shields.io/github/workflow/status/microsoft/vscode-java-test/CI/master?style=flat-square" alt="">
</a>
<a href="https://lgtm.com/projects/g/microsoft/vscode-java-test/alerts/?mode=list">
<img src="https://img.shields.io/lgtm/alerts/g/microsoft/vscode-java-test.svg?style=flat-square" alt="">
Expand Down
1 change: 1 addition & 0 deletions extension.bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export * from './src/protocols';
export * from './src/utils/commandUtils';
export * from './src/testFileWatcher';
export * from './src/runners/runnerScheduler';
export * from './src/provider/testSourceProvider';
6 changes: 2 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ gulp.task('sass', (done) => {
});

gulp.task('download-resources', (done) => {
remoteSrc(['jquery-3.3.1.slim.min.js'], { base: 'https://code.jquery.com/' })
remoteSrc(['jquery-3.5.1.slim.min.js'], { base: 'https://code.jquery.com/' })
.pipe(gulp.dest(path.join(resourceDir, 'templates', 'js')));
remoteSrc(['popper.min.js'], { base: 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/' })
.pipe(gulp.dest(path.join(resourceDir, 'templates', 'js')));
remoteSrc(['bootstrap.min.js'], { base: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/' })
remoteSrc(['bootstrap.bundle.min.js'], { base: 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/' })
.pipe(gulp.dest(path.join(resourceDir, 'templates', 'js')));
done();
});
Expand Down
2 changes: 1 addition & 1 deletion java-extension/build-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.java.test</groupId>
<artifactId>parent</artifactId>
<version>0.27.0</version>
<version>0.29.0</version>
</parent>
<groupId>com.microsoft.java.test</groupId>
<artifactId>test-runner-build-tools</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<bundle id="com.microsoft.java.test.plugin" version="0.27.0"/>
</site>
<bundle id="com.microsoft.java.test.plugin" version="0.29.0"/>
</site>
2 changes: 1 addition & 1 deletion java-extension/com.microsoft.java.test.plugin.site/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.microsoft.java.test</groupId>
<version>0.27.0</version>
<version>0.29.0</version>
</parent>
<artifactId>com.microsoft.java.test.plugin.site</artifactId>
<packaging>eclipse-repository</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.27.0
Bundle-Version: 0.29.0
Bundle-Activator: com.microsoft.java.test.plugin.util.JUnitPlugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.eclipse.jdt.core,
Expand All @@ -16,6 +16,7 @@ Require-Bundle: org.eclipse.jdt.core,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jdt.core.manipulation,
org.eclipse.text,
org.eclipse.debug.core,
org.eclipse.jdt.junit.core,
org.eclipse.jdt.junit.runtime,
Expand Down
1 change: 1 addition & 0 deletions java-extension/com.microsoft.java.test.plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<command id="vscode.java.test.search.codelens" />
<command id="vscode.java.test.search.location" />
<command id="vscode.java.test.junit.argument" />
<command id="vscode.java.test.generateTests" />
</delegateCommandHandler>
</extension>
</plugin>
2 changes: 1 addition & 1 deletion java-extension/com.microsoft.java.test.plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.microsoft.java.test</groupId>
<artifactId>parent</artifactId>
<version>0.27.0</version>
<version>0.29.0</version>
</parent>
<artifactId>com.microsoft.java.test.plugin</artifactId>
<packaging>eclipse-plugin</packaging>
Expand Down
Loading