Skip to content

Commit 87e97b2

Browse files
authored
Merge pull request #75 from edgardmessias/add_tests
Added initial support to tests (#74)
2 parents d9d45b7 + 8438500 commit 87e97b2

File tree

9 files changed

+191
-140
lines changed

9 files changed

+191
-140
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
out
2+
out
3+
/.vscode-test

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
sudo: false
2+
3+
language: node_js
4+
5+
node_js:
6+
- "node"
7+
8+
os:
9+
- linux
10+
11+
cache:
12+
directories:
13+
- "node_modules"
14+
15+
before_install:
16+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
17+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
18+
sh -e /etc/init.d/xvfb start;
19+
sleep 3;
20+
fi
21+
22+
install:
23+
- npm install
24+
- npm run vscode:prepublish
25+
26+
script:
27+
- npm test --silent

.vscode/launch.json

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
// A launch configuration that launches the extension inside a new window
22
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Launch Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false
12-
},
13-
{
14-
"name": "Launch Tests",
15-
"type": "extensionHost",
16-
"request": "launch",
17-
"runtimeExecutable": "${execPath}",
18-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/test" ],
19-
"stopOnEntry": false
20-
}
21-
]
22-
}
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"outFiles": ["${workspaceRoot}/out/**/*.js"]
14+
},
15+
{
16+
"name": "Launch Tests",
17+
"type": "extensionHost",
18+
"request": "launch",
19+
"runtimeExecutable": "${execPath}",
20+
"args": [
21+
"--extensionDevelopmentPath=${workspaceRoot}",
22+
"--extensionTestsPath=${workspaceRoot}/out/test"
23+
],
24+
"stopOnEntry": false,
25+
"sourceMaps": true,
26+
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ]
27+
}
28+
]
29+
}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vscode/**
22
.vscode-test/**
3+
out/test/**
34
test/**
45
.gitignore
56
jsconfig.json

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Visual Studio Marketplace](https://img.shields.io/vscode-marketplace/d/johnstoncode.svn-scm.svg)](https://marketplace.visualstudio.com/items?itemName=johnstoncode.svn-scm)
33
[![rating](https://img.shields.io/vscode-marketplace/r/johnstoncode.svn-scm.svg)](https://marketplace.visualstudio.com/items?itemName=johnstoncode.svn-scm)
44
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/JohnstonCode/svn-scm/pulls)
5+
[![Build Status](https://travis-ci.org/JohnstonCode/svn-scm.svg?branch=master)](https://travis-ci.org/JohnstonCode/svn-scm)
56

67
# Subversion source control for VS Code
78

0 commit comments

Comments
 (0)