Skip to content

Commit a4d5498

Browse files
Merge pull request #610 from deyan-r/main
[vrotest] (#590) Unit tests execution in Windows reports error
2 parents 4dc693e + 93f1a66 commit a4d5498

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/versions/latest/Release.md

+10
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ The example now has a close curly brace.
7474

7575
[Workflows.md](../../versions/latest/Components/Archetypes/typescript/Components/Workflows.md).
7676

77+
### *Fix unit test execution in Windows reporting error*
78+
79+
#### Previous Behavior
80+
81+
When maven build executes unit tests, it reports "Error occurred in unit tests execution: null"
82+
83+
#### New Behavior
84+
85+
The correct output of unit tests result is shown
86+
7787
## Upgrade procedure
7888

7989
[//]: # (Explain in details if something needs to be done)

typescript/vrotest/src/run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default async function (flags: RunCommandFlags): Promise<void> {
5757
console.log("Installing node modules for the tests completed.");
5858

5959
console.log("Starting unit tests.");
60-
var child = childProc.spawnSync("npm", [ "test" ], { encoding : 'utf8' });
60+
var child = childProc.spawnSync("npm", [ "test" ], { encoding : 'utf8', shell: true });
6161
if (child.status === 0) {
6262
console.log(child.stdout);
6363
console.log(child.stderr);

0 commit comments

Comments
 (0)