Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

rework debugprint to ts #5074

Merged
merged 7 commits into from
Dec 19, 2018
Merged

rework debugprint to ts #5074

merged 7 commits into from
Dec 19, 2018

Conversation

CrispusDH
Copy link
Contributor

No description provided.

@CrispusDH
Copy link
Contributor Author

@cnishina , could you take a look at this PR, please

@CrispusDH
Copy link
Contributor Author

Reference #5061

@CrispusDH
Copy link
Contributor Author

@cnishina any updates?

Copy link
Contributor

@cnishina cnishina left a comment

Choose a reason for hiding this comment

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

We might need to also update RunResults. Please see requested changes. Other than that, this looks pretty good.

Logger = require('../logger').Logger;
import * as util from 'util';
import {Logger} from '../logger';
import {Runner} from '../runner';

Copy link
Contributor

Choose a reason for hiding this comment

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

`import {RunResults} from '../taskRunner';

We might need to update the RunResults to be more flexible:
https://github.com/angular/protractor/blob/selenium4/lib/taskRunner.ts#L9

export interface RunResults {
  taskId?: number;
  specs?: Array<string>;
  ...

@@ -11,11 +12,9 @@ var logger = new Logger('debugger');
* @param {Array} specs Array of Directory Path Strings.
* @return {Promise} Promise resolved with the test results
*/
exports.run = (runner, specs) => {
export const run = (runner: Runner, specs: Array<string>) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

export const run = (runner: Runner, specs: Array<string>): Promise<RunResults> => {

failedCount: 0
});
logger.info(`Resolved spec files: ${util.inspect(specs)}`);
resolve({failedCount: 0});
Copy link
Contributor

Choose a reason for hiding this comment

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

Once the changes are made to RunResults you probably do not need to cast. If for some reason there are type errors, you might need to cast this to resolve({failedCount: 0} as RunResults);

@CrispusDH
Copy link
Contributor Author

@cnishina I did not update RunResults. Probably, it is not necessary.

@cnishina
Copy link
Contributor

Hmmm I guess not. Awesome!

@cnishina cnishina merged commit 860d3ef into angular:selenium4 Dec 19, 2018
@CrispusDH CrispusDH deleted the debugprint-to-ts branch December 19, 2018 06:55
cnishina pushed a commit to cnishina/protractor that referenced this pull request Dec 19, 2018
cnishina pushed a commit to cnishina/protractor that referenced this pull request Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants