Skip to content

Commit 4ee7ddd

Browse files
authored
Add test cases. (microsoft#12)
* Add test cases. * Add travis.
1 parent 8899f3a commit 4ee7ddd

33 files changed

Lines changed: 469 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: node_js
2+
3+
node_js:
4+
- '--lts'
5+
6+
os:
7+
- linux
8+
- osx
9+
10+
before_install:
11+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
12+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
13+
sh -e /etc/init.d/xvfb start;
14+
sleep 3;
15+
fi
16+
- cd extension
17+
18+
install:
19+
- npm install -g vsce
20+
- npm install -g typescript
21+
- npm install -g gulp
22+
- npm install
23+
24+
script:
25+
- gulp tslint
26+
- gulp build_server
27+
- vsce package
28+
- npm test --silent

‎README.md‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
# Java Dependency Viewer
22

3+
[![Travis CI](https://travis-ci.org/Microsoft/vscode-java-explorer.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-java-explorer)
4+
35
## Features
46

57
* Dependency viewer
68
![viewer](https://raw.githubusercontent.com/yaohaizh/java-copilot/master/vscode/images/Dependency.gif)
79

8-
### Contribution
10+
* Create Java Project
11+
12+
## Requirements
13+
14+
- JDK (version 1.8.0 or later)
15+
- VS Code (version 1.22.0 or later)
16+
- [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java) (version 0.14.0 or later)
17+
18+
## Contribution
919
### Build
1020
* Prerequirement
1121
- Node.js
@@ -21,7 +31,3 @@ gulp build_server
2131
```
2232

2333
### Debug
24-
25-
26-
## Release Note
27-

‎test/gradle/.classpath‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src/main/java"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
5+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
1 Byte
Binary file not shown.
18.1 KB
Binary file not shown.
17 Bytes
Binary file not shown.

‎test/gradle/.project‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>gradle</name>
4+
<comment>Project gradle created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Fri May 04 15:36:55 CST 2018
2+
connection.project.dir=

‎test/gradle/.vscode/launch.json‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "java",
6+
"name": "Java Debug",
7+
"request": "launch",
8+
"cwd": "${workspaceRoot}",
9+
"stopOnEntry": true,
10+
"mainClass": "GradleTest",
11+
"sourcePaths": [
12+
"${workspaceRoot}/src/main/java"
13+
],
14+
"options": []
15+
},
16+
{
17+
"type": "java",
18+
"name": "Java Debug (Attach)",
19+
"request": "attach",
20+
"hostName": "localhost",
21+
"port": 0,
22+
"attachTimeout": 30000,
23+
"cwd": "${workspaceRoot}",
24+
"sourcePaths": [
25+
"${workspaceRoot}"
26+
]
27+
}
28+
]
29+
}

‎test/gradle/build.gradle‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apply plugin: 'java'
2+
3+
4+
sourceSets {
5+
main.java.srcDirs = ['src/main/java']
6+
}

0 commit comments

Comments
 (0)