Skip to content

Commit d0ff570

Browse files
AbhitejJohnjonsequitur
authored andcommitted
Fixing the generation of the trx file. It wasn't generated because the folder didn't exist. This should work for both local and CI runs.
1 parent c43a480 commit d0ff570

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const outputDir = path.resolve(__dirname, '../artifacts/TestResults/Release');
5+
6+
if (!fs.existsSync(outputDir)) {
7+
fs.mkdirSync(outputDir, { recursive: true });
8+
}

src/polyglot-notebooks-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"compile": "npm run rollup",
1010
"compile-ci": "rollup -c rollup.config.js --bundleConfigAsCjs",
1111
"test": "mocha tests/**/*.test.ts",
12-
"ciTest": "npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
12+
"ciTest": "node ../ensure-testresults-directory.js && npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
1313
"rollup": "npm run compile-ci -- -i src/index.ts -o dist/dotnet-interactive.js",
1414
"watch": "tsc -watch -p ./"
1515
},

src/polyglot-notebooks-vscode-insiders/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
"watch": "tsc -watch -p ./",
793793
"pretest": "npm run compile",
794794
"test": "mocha out/tests/**/*.test.js",
795-
"ciTest": "npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
795+
"ciTest": "node ../ensure-testresults-directory.js && npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
796796
"testDebug": "mocha out/tests/**/*.test.js",
797797
"tdd": "npm test -- --watch",
798798
"package": "npx @vscode/vsce package --pre-release",

src/polyglot-notebooks-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@
796796
"watch": "tsc -watch -p ./",
797797
"pretest": "npm run compile",
798798
"test": "mocha out/tests/**/*.test.js",
799-
"ciTest": "npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
799+
"ciTest": "node ../ensure-testresults-directory.js && npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json",
800800
"testDebug": "mocha out/tests/**/*.test.js",
801801
"tdd": "npm test -- --watch",
802802
"package": "npx @vscode/vsce package",

src/polyglot-notebooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"pretest": "npm run compile && npm run lint",
2020
"test": "mocha tests/**/*.test.ts",
2121
"testDebug": "mocha tests/**/*.test.ts",
22-
"ciTest": "npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json"
22+
"ciTest": "node ../ensure-testresults-directory.js && npm test -- --reporter mocha-multi-reporters --reporter-options configFile=testConfig.json"
2323
},
2424
"mocha": {
2525
"ui": "bdd",

0 commit comments

Comments
 (0)