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

passed idc to nonDistributedTest.ts #7525

Merged
merged 1 commit into from
Jun 20, 2018
Merged
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
6 changes: 4 additions & 2 deletions Tasks/VsTestV2/nondistributedtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ const runSettingsExt = '.runsettings';
const testSettingsExt = '.testsettings';
const sourceFilter = tl.getDelimitedInput('testAssemblyVer2', '\n', true);

const inputDataContract: InputDataContract = undefined;
let inputDataContract: InputDataContract = undefined;
let testAssemblyFiles = undefined;

export function runNonDistributedTest() {
export function runNonDistributedTest(idc: InputDataContract) {
try {

console.log(tl.loc('runTestsLocally', 'vstest.console.exe'));
console.log('========================================================');

inputDataContract = idc;

testAssemblyFiles = getTestAssemblies();
if (!testAssemblyFiles || testAssemblyFiles.length === 0) {
console.log('##vso[task.logissue type=warning;code=002004;]');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/runvstest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (osPlat !== 'win32') {
if (inputDataContract.ExecutionSettings
&& inputDataContract.ExecutionSettings.RerunSettings
&& inputDataContract.ExecutionSettings.RerunSettings.RerunFailedTests) {
nondistributedtest.runNonDistributedTest();
nondistributedtest.runNonDistributedTest(inputDataContract);
} else {
localtest.startTest();
}
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 3
"Patch": 4
},
"demands": [
"vstest"
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 3
"Patch": 4
},
"demands": [
"vstest"
Expand Down