Skip to content

Commit

Permalink
Add dot:true option to glob finds (#93)
Browse files Browse the repository at this point in the history
* Fails to find lcov.info file in path with directories starting with '.' (#92)

* add package for linux travis build

* increment versions
  • Loading branch information
Chcap authored and ryanluker committed Sep 11, 2017
1 parent 2ab98c9 commit 3e4e5c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ os:
- osx
- linux

addons:
apt:
packages:
- libsecret-1-dev

before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-coverage-gutters",
"displayName": "Coverage Gutters",
"description": "Display test coverage generated by lcov - works with many languages",
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/lcov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Lcov {
return new Promise<string[]>((resolve, reject) => {
this.glob.find(
`**/${this.configStore.lcovFileName}`,
{ ignore: "**/node_modules/**", cwd: this.vscode.getRootPath(), realpath: true },
{ ignore: "**/node_modules/**", cwd: this.vscode.getRootPath(), realpath: true, dot: true },
(err, files) => {
if (!files || !files.length) { return reject("Could not find a Lcov File!"); }
return resolve(files);
Expand All @@ -37,7 +37,7 @@ export class Lcov {
return new Promise<string[]>((resolve, reject) => {
this.glob.find(
`**/coverage/**/index.html`,
{ ignore: "**/node_modules/**", cwd: this.vscode.getRootPath(), realpath: true },
{ ignore: "**/node_modules/**", cwd: this.vscode.getRootPath(), realpath: true, dot: true },
(err, files) => {
if (!files || !files.length) { return reject("Could not find a Lcov Report file!"); }
return resolve(files);
Expand Down
2 changes: 1 addition & 1 deletion src/reporter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Request} from "./wrappers/request";

const EXT_NAME = "vscode-coverage-gutters";
const EXT_VERSION = "1.1.2";
const EXT_VERSION = "1.1.3";

export class Reporter {
private readonly cid: string;
Expand Down
1 change: 1 addition & 0 deletions test/lcov.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ suite("Lcov Tests", function() {
globImpl.find = function(path, options, cb) {
assert.equal(path, "**/test.ts");
assert.equal(options.ignore, "**/node_modules/**");
assert.equal(options.dot, true);
return cb(null, ["1", "2"]);
};
const lcov = new Lcov(
Expand Down

0 comments on commit 3e4e5c5

Please sign in to comment.