diff --git a/.travis.yml b/.travis.yml
index 7a9331c2..418a1d17 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@ node_js:
- '11'
os:
+- windows
- linux
- osx
dist: trusty # using Ubuntu 14.04.5 LTS
@@ -62,7 +63,9 @@ script:
- gulp tslint
- gulp genAikey
- vsce package
-- npm test --silent
+- if [ $TRAVIS_OS_NAME == "linux" ] || [ $TRAVIS_OS_NAME == "osx" ]; then
+ npm test --silent;
+ fi
deploy:
# deploy to github release
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a31004a7..343e98bb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -8,6 +8,8 @@ There are many ways that you can contribute, beyond writing code. The goal of th
If you are interested in writing code to fix issues, first look at the issues with the [help-wanted](https://github.com/Microsoft/vscode-arduino/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) label. They should have the context and code pointers needed to get started. If not, then feel free to ask for some, and we will be happy to provide any guidance you need.
+When you are doing code fix, please work against [develop](https://github.com/microsoft/vscode-arduino/tree/develop) branch and also submit pull request to develop branch. Changes will be merged into master branch after production release.
+
## Reporting Issues
diff --git a/README.md b/README.md
index 4b7af0fa..30f60388 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,9 @@ Welcome to the Visual Studio Code extension for **Arduino** preview !
## Prerequisites
The Arduino IDE is required. Please install it from the [download page](https://www.arduino.cc/en/main/software#download).
-- *Note:* Arduino IDE `1.8.7` has some breaking changes, causing board package and library installation failures. It is recommended to that you install version `1.8.6` or `1.8.8`
- The supported Arduino IDE versions are `1.6.x` and later.
- The Windows Store's version of the Arduino IDE is not supported because of the sandbox environment that the application runs in.
+- *Note:* Arduino IDE `1.8.7` has some breaking changes, causing board package and library installation failures.
## Installation
Open VS Code and press F1 or Ctrl + Shift + P to open command palette, select **Install Extension** and type `vscode-arduino`.
diff --git a/test/extension.test.ts b/test/extension.test.ts
index c301d3ac..e1a8de12 100644
--- a/test/extension.test.ts
+++ b/test/extension.test.ts
@@ -5,6 +5,8 @@
import * as assert from "assert";
import * as os from "os";
import * as vscode from "vscode";
+const impor = require("impor")(__dirname);
+const usbDetectorModule = impor("../src/serialmonitor/usbDetector") as typeof import ("../src/serialmonitor/usbDetector");
// Defines a Mocha test suite to group tests of similar kind together
suite("Arduino: Extension Tests", () => {
@@ -65,11 +67,10 @@ suite("Arduino: Extension Tests", () => {
});
suiteTeardown(() => {
- // When running test on osx, the vscode instance is hanging there after tests finished and cause mocha timeout.
+ // When running test on osx or windows, the vscode instance is hanging there after tests finished and cause mocha timeout.
// As a workaround, closing usb-detection process manually would make test window exit normally.
if (os.platform() !== "linux") {
- const usbDector = require("node-usb-native").detector;
- usbDector.stopMonitoring();
+ usbDetectorModule.UsbDetector.getInstance().stopListening();
}
});
});