Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Apr 5, 2019
1 parent 873f6bc commit 00d6b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/unittests/pytest/pytest.run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ suite('xUnit Tests - pytest - run with mocked process output', () => {
procService.onExec((_file, args, _options, callback) => {
if (args.indexOf('discover') >= 0 && args.indexOf('pytest') >= 0) {
callback({
stdout: fs.readFileSync(path.join(PYTEST_RESULTS_PATH, outputFileName), 'utf8').replace(/\/Users\/donjayamanne\/.vscode-insiders\/extensions\/pythonVSCode\/src\/test\/pythonFiles\/testFiles\/noseFiles/g, PYTEST_RESULTS_PATH)
stdout: fs.readFileSync(path.join(PYTEST_RESULTS_PATH, outputFileName), 'utf8').replace(/\/Users\/donjayamanne\/.vscode-insiders\/extensions\/pythonVSCode\/src\/test\/pythonFiles\/testFiles/g, path.dirname(UNITTEST_TEST_FILES_PATH))
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ suite('Unit Tests - PyTest - TestMessageService', () => {
const workspaceService = ioc.serviceContainer.get<IWorkspaceService>(IWorkspaceService);
const fileSystem = ioc.serviceContainer.get<IFileSystem>(IFileSystem);
const parser = new TestDiscoveredTestParser(fileSystem, workspaceService);
const discoveryOutput = fs.readFileSync(path.join(PYTEST_RESULTS_PATH, scenario.discoveryOutput), 'utf8').replace(/\/Users\/donjayamanne\/.vscode\/extensions\/pythonVSCode\/src\/test\/pythonFiles\/testFiles\/noseFiles/g, PYTEST_RESULTS_PATH);
const discoveryOutput = fs.readFileSync(path.join(PYTEST_RESULTS_PATH, scenario.discoveryOutput), 'utf8').replace(/\/Users\/donjayamanne\/.vscode-insiders\/extensions\/pythonVSCode\/src\/test\/pythonFiles\/testFiles/g, path.dirname(UNITTEST_TEST_FILES_PATH));
const discoveredTest: DiscoveredTests[] = JSON.parse(discoveryOutput);
options.workspaceFolder = vscode.Uri.file(discoveredTest[0].root);
const parsedTests: Tests = parser.parse(options.workspaceFolder, discoveredTest);
Expand Down

0 comments on commit 00d6b08

Please sign in to comment.