Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing whitespaces between arguments #254

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/testCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class TestCommands implements Disposable {

return new Promise((resolve, reject) => {
const testResultFile = path.join(this.testResultsFolder, trxTestName);
let command = `dotnet test${Utility.additionalArgumentsOption} --no-build --logger \"trx;LogFileName=${testResultFile}\"`;
let command = `dotnet test ${Utility.additionalArgumentsOption} --no-build --logger \"trx;LogFileName=${testResultFile}\"`;

if (testName && testName.length) {
if (isSingleTest) {
Expand Down
2 changes: 1 addition & 1 deletion src/testDiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function discoverTests(testDirectoryPath: string, dotnetTestOptions: stri

function executeDotnetTest(testDirectoryPath: string, dotnetTestOptions: string): Promise<string> {
return new Promise((resolve, reject) => {
const command = `dotnet test -t -v=q${dotnetTestOptions}`;
const command = `dotnet test -t -v=q ${dotnetTestOptions}`;

Logger.Log(`Executing ${command} in ${testDirectoryPath}`);

Expand Down
2 changes: 1 addition & 1 deletion src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Watch {
const trxPath = path.join(this.testCommands.testResultFolder, `autoWatch${index}.trx`);

AppInsightsClient.sendEvent("runWatchCommand");
const command = `dotnet watch test${Utility.additionalArgumentsOption} --logger "trx;LogFileName=${trxPath}"`;
const command = `dotnet watch test ${Utility.additionalArgumentsOption} --logger "trx;LogFileName=${trxPath}"`;

Logger.Log(`Executing ${command} in ${testDirectory}`);
const p = Executor.exec(command, (err: any, stdout: string) => {
Expand Down
2 changes: 1 addition & 1 deletion test/testDiscovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ suite("Test discovery", () => {
const testDirectoryPath = "xyz";
const dotnetTestOptions = "foo";

const dotnetTestExecCmd = `dotnet test -t -v=q${dotnetTestOptions}`;
const dotnetTestExecCmd = `dotnet test -t -v=q ${dotnetTestOptions}`;
const assemblyFilePath = "/bin/TestAssembly.dll";

const tmpDir = "/temp";
Expand Down