Skip to content

refactor: Consume from the eclipse junit runner#795

Merged
jdneo merged 7 commits into
masterfrom
cs/junit4-runner
Sep 10, 2019
Merged

refactor: Consume from the eclipse junit runner#795
jdneo merged 7 commits into
masterfrom
cs/junit4-runner

Conversation

@jdneo

@jdneo jdneo commented Sep 5, 2019

Copy link
Copy Markdown
Member

No description provided.

@jdneo jdneo added this to the 0.19.1 milestone Sep 5, 2019
Comment thread src/runners/baseRunner/BaseRunner.ts Outdated
return commandParams;
}

protected getJavaEncoding(): string {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two methods are just changed modifier from private to protected and changed the location up

Comment thread src/runners/junit4Runner/Junit4Runner.ts Outdated
Eskibear
Eskibear previously approved these changes Sep 5, 2019
Comment thread src/runners/junit4Runner/Junit4Runner.ts Outdated
Comment thread src/runners/junit4Runner/Junit4Runner.ts Outdated
Comment thread src/runners/junit4Runner/JUnit4RunnerResultAnalyzer.ts
Comment thread src/runners/junit4Runner/Junit4Runner.ts Outdated
Comment thread src/runners/junit4Runner/Junit4Runner.ts Outdated
Comment thread src/runners/ITestRunner.ts Outdated
run(): Promise<ITestResult[]>;
setup(tests: ITestItem[], isDebug: boolean, config?: IExecutionConfig, searchParam?: ISearchTestItemParams): Promise<DebugConfiguration>;
run(launchConfiguration: DebugConfiguration): Promise<ITestResult[]>;
cleanUp(isCancel: boolean): Promise<void>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> tearDown

Comment thread src/runners/baseRunner/BaseRunner.ts Outdated
vmArgs: this.getVmArgs(config),
encoding: getJavaEncoding(Uri.parse(tests[0].location.uri), config),
env,
noDebug: !isDebug ? true : false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need of ternary expression. Use !isDebug directly.

@jdneo jdneo merged commit 20b3d92 into master Sep 10, 2019
@jdneo jdneo deleted the cs/junit4-runner branch September 10, 2019 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants