-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b14a1f
commit 2d32040
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Example Workspace | ||
|
||
``` | ||
example-workspace | ||
├── packages | ||
| ├── client | ||
| | ├── test | ||
| | | └── render-user.test.ts | ||
| | └── vitest.config.ts | ||
| | | ||
| ├── server | ||
| | ├── test | ||
| | | └── request-parse.test.ts | ||
| | └── vitest.config.ts | ||
| | | ||
| └── shared | ||
| ├── test | ||
| | └── user-utils.test.ts | ||
| └── vitest.config.ts | ||
| | ||
├── sonar-report.xml <-- This report contains tests from all sub-packages, see example below | ||
| | ||
├── vitest.config.ts <-- This configuration defines reporter usage | ||
└── vitest.workspace.ts | ||
``` | ||
|
||
``` | ||
RUN v0.31.1 /path/to/project/example-workspace | ||
✓ |shared| test/user-utils.test.ts (3) | ||
✓ parseName (2) | ||
✓ returns first name | ||
✓ returns last name | ||
✓ getInitials (1) | ||
✓ returns initials | ||
✓ |server| test/request-parse.test.ts (1) | ||
✓ parseUserFromRequest (1) | ||
✓ returns user from request | ||
✓ |client| test/render-user.test.ts (1) | ||
✓ renderUser (1) | ||
✓ renders user | ||
``` | ||
|
||
```xml | ||
<testExecutions version="1"> | ||
<file path="packages/client/test/render-user.test.ts"> | ||
<testCase name="renderUser - renders user" duration="1" /> | ||
</file> | ||
<file path="packages/server/test/request-parse.test.ts"> | ||
<testCase name="parseUserFromRequest - returns user from request" duration="1" /> | ||
</file> | ||
<file path="packages/shared/test/user-utils.test.ts"> | ||
<testCase name="parseName - returns first name" duration="1" /> | ||
<testCase name="parseName - returns last name" duration="1" /> | ||
<testCase name="getInitials - returns initials" duration="1" /> | ||
</file> | ||
</testExecutions> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
examples/example-workspace/report-test/vitest.config.report.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters