Skip to content

Commit

Permalink
Merge pull request #33 from joselitofilho/new/v0.0.15
Browse files Browse the repository at this point in the history
New/v0.0.15
  • Loading branch information
joselitofilho authored Mar 11, 2021
2 parents 595d5d3 + 9630161 commit 5492d67
Show file tree
Hide file tree
Showing 16 changed files with 132 additions and 267 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the "ginkgotestexplorer" extension will be documented in this file.

### v0.0.15

- Updates suite node when tests passed or not passed.

### v0.0.14

- Test file tree view.
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Welcome!

This VS Code extension offers a set of tools for the [Ginkgo Framework](https://onsi.github.io/ginkgo/).

![Ginkgo Test Explorer](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/ginkgotest.gif)
![Ginkgo Test Explorer](media/ginkgotest.gif)

It is based on two other extensions:
- [GoTestExplorer](https://github.com/ppparihar/GoTestExplorer)
Expand Down Expand Up @@ -32,37 +32,37 @@ go get github.com/onsi/gomega/...

### View tests tree

![View tests tree](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/view-tests-tree.png)
![View tests tree](media/view-tests-tree.png)

### View test file tree

![View test file tree](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/view-test-file-tree.png)
![View test file tree](media/view-test-file-tree.png)

### Run/Debug individual test

![Run/Debug individual test](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/run-debug-individual-tests.png)
![Run/Debug individual test](media/run-debug-individual-tests.png)

### Run/Debug suite tests

![Run/Debug suite tests](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/run-debug-suite-tests.png)
![Run/Debug suite tests](media/run-debug-suite-tests.png)

![Run suite tests](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/run-suite-tests.png)
![Run suite tests](media/run-suite-tests.png)

### Generate suite coverage

![Generate suite coverage](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/generate-suite-coverage.png)
![Generate suite coverage](media/generate-suite-coverage.png)

### Run all project tests

![Run all project tests](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/run-all-project-tests.png)
![Run all project tests](media/run-all-project-tests.png)

### Generate project coverage

![Generate project coverage](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/generate-project-coverage.png)
![Generate project coverage](media/generate-project-coverage.png)

### Go to symbol in editor

![Go to symbol in editor](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/go-to-symbol.png)
![Go to symbol in editor](media/go-to-symbol.png)

### Command pallete

Expand All @@ -72,7 +72,7 @@ on Windows or Linux:
on MacOS:
- Tap <kbd>command</kbd> + <kbd>shift</kbd> + <kbd>p</kbd>

![Command pallete](https://github.com/joselitofilho/ginkgoTestExplorer/raw/main/media/commands.png)
![Command pallete](media/commands.png)

## License

Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/joselitofilho/ginkgoTestExplorer"
},
"version": "0.0.14",
"version": "0.0.15",
"publisher": "joselitofilho",
"engines": {
"vscode": "^1.53.0"
Expand Down
2 changes: 1 addition & 1 deletion resources/dark/testSuite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 1 addition & 52 deletions resources/dark/testSuiteFailed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 1 addition & 52 deletions resources/dark/testSuitePassed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 1 addition & 52 deletions resources/light/testSuiteFailed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 1 addition & 52 deletions resources/light/testSuitePassed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/ginkgoNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ export function isRunnableTest(node: GinkgoNode): boolean {
return node.name !== 'By' && !node.pending && !isWrenchNode(node);
}

export function isSuiteTest(node: GinkgoNode): boolean {
switch (node.name) {
case 'Context':
case 'FContext':
case 'PContext':
case 'XContext':
case 'Describe':
case 'FDescribe':
case 'PDescribe':
case 'XDescribe':
case 'When':
case 'FWhen':
case 'PWhen':
case 'XWhen':
return true;
}
return false;
}

export function isWrenchNode(node: GinkgoNode): boolean {
switch (node.name) {
case 'BeforeEach':
Expand Down
Loading

0 comments on commit 5492d67

Please sign in to comment.