Skip to content

Commit

Permalink
Merge pull request #76 from matepek/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
matepek authored Mar 18, 2019
2 parents 34b90ff + 1a56819 commit 453687a
Show file tree
Hide file tree
Showing 12 changed files with 1,769 additions and 70 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.26]

### Added

- support for `GTEST_SKIP()`.
- (experimental) glob pattern for patterns outside the workspace directory
- (experimental) watcher for executables outside the workspace directory

### Fixed

- a bug which caused to run all tests of a suite including the skipped ones too

## [2.3.25] - 2019-03-15

### Added
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ If it is an object it can contains the following properties:
| `cwd` | The current working directory for the test executable. If it isn't provided and `defaultCwd` does, then that will be used. Can contains variables related to `pattern`. | (optional) |
| `env` | Environment variables for the test executable. If it isn't provided and `defaultEnv` does, then that will be used. Can contains variables related to `pattern`. | (optional) |

**Remark**: The `pattern` (or the `executables` used as string or an array of strings)
The `pattern` (or the `executables` used as string or an array of strings)
can contains [_search-pattern_](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)
if it points somewhere inside of the workspace folder.
Otherwise it only can point to an executable (No _search-pattern_!) with a relative or absolute path
Expand All @@ -73,6 +73,12 @@ If compilation reaches timeout it will drop the suite (`catch2TestExplorer.defau
- on other platforms: ends with one of the following:
`'.c', '.cmake', '.cpp', '.cxx', '.deb', '.dir', '.gz', '.h', '.hpp', '.hxx', '.ko', '.log', '.o', '.php', '.rpm', '.so', '.tar', '.txt'`.

It won't filter out `'.sh'`, `'.py'` (etc.) files, so that could be used for wrappers.

If the pattern is too general like `out/**/*test*`, it could cause unexpected executable or script execution (with `--help` argument)
which would not just increase the test-loading duration but also could have other unexpeced effects.
I suggest to have a stricter file-name convention and a corresponding pattern like `out/**/*.test.*` or `out/**/Test.*`

#### Variables which can be used in `name`, `cwd` and `env` of `executables`:

| Variable | Description |
Expand Down Expand Up @@ -198,6 +204,7 @@ For debugging use `catch2TestExplorer.logpanel: true`.
## TODOs

- Remove deprecated `catch2TestExplorer.enableSourceDecoration`.
- Test cases: google test, catch2: info, warn, fail, stdout, stderr, capture
- Test cases: google test, catch2: info, warn, fail, stdout, stderr, capture, gtest_skip
- Update this readme because of the effects of the new fswatcher.

## [Contribution guideline here](CONTRIBUTING.md)
Loading

0 comments on commit 453687a

Please sign in to comment.