Skip to content

Commit

Permalink
mergeByLabel improvements; Catch2 parser improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
matepek committed Mar 9, 2024
1 parent c66e62e commit 0dc618c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ node_modules
out

/test/cpp/build
/test/cpp/.vscode/

*.vsix
.vscode-test

.vscode/ipch

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [4.11.0]

### Changed

- from now `mergeByLabel` configuration only takes `env` in account. ([related](https://github.com/matepek/vscode-catch2-test-adapter/issues/427))
- Catch2 parser improvements ([related](https://github.com/matepek/vscode-catch2-test-adapter/issues/428))

## [4.10.0] - 2024-03-05

### Added/Changed/Removed
Expand Down
11 changes: 11 additions & 0 deletions src/framework/Catch2/Catch2Executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,17 @@ abstract class TagProcessorBase implements XmlTagProcessor {
}
},
],
[
'OverallResultsCases',
(tag: XmlTag, builder: TestResultBuilder, _shared: SharedVarOfExec) => {
builder.setDurationMilisec(parseFloat(tag.attribs.durationInSeconds) * 1000);
if (tag.attribs.failures !== '0') {
builder.failed();
} else {
builder.passed();
}
},
],
[
'Expression',
(tag: XmlTag, builder: TestResultBuilder, shared: SharedVarOfExec): XmlTagProcessor =>
Expand Down
2 changes: 1 addition & 1 deletion src/framework/SharedVarOfExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class SharedVarOfExec {
readonly resolvedSourceFileMap: Record<string, string>,
) {
this.parallelizationPool = new TaskPool(_parallelizationLimit);
this.optionsHash = hash.MD5(options).substring(0, 6);
this.optionsHash = hash.MD5(options.env).substring(0, 6);
}

readonly parallelizationPool: TaskPool;
Expand Down
1 change: 0 additions & 1 deletion test/cpp/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"testMate.cpp.test.advancedExecutables": [
{
"pattern":"build/**/*{test,Test,TEST}*",
"exclude": "files.watcherExcludee",
"runTask": {
// "before": ["build_all"]
}
Expand Down

0 comments on commit 0dc618c

Please sign in to comment.