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

Implement CLI (closes #105) #118

Merged
merged 1 commit into from
Oct 21, 2015
Merged

Implement CLI (closes #105) #118

merged 1 commit into from
Oct 21, 2015

Conversation

inikulin
Copy link
Contributor

You can try it locally (please try it) by running in the shell:

mkdir test-cli && cd ./test-cli && \
git clone https://github.com/inikulin/testcafe-phoenix && \ 
cd ./testcafe-phoenix && git checkout cli && \
npm install && gulp build

Then to run CLI:

node bin/testcafe <args>

\cc @churkin @AlexanderMoskovkin @kirovboris
@VasilyStrelyaev check texts and test names, please

@inikulin inikulin changed the title Implement CLI Implement CLI (closes #105) Oct 16, 2015
@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 24f1f3b have passed. See details.

}

function waitBrowserConnectionReady (browserConnection) {
return new Promise((resolve)=> browserConnection.once('ready', resolve));
Copy link
Collaborator

Choose a reason for hiding this comment

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

(resolve) -> resolve ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch

@kirovboris
Copy link
Collaborator

I'm executing node bin/testcafe chrome,ie test.js, and getting

ERROR Cannot read property 'isTTY' of null

@kirovboris
Copy link
Collaborator

/r-

@inikulin
Copy link
Contributor Author

In addition: Hammerhead errors are not handled correctly
Edit: issued in separate ticket - #120

this.opts = this.program.opts();

// NOTE: '-list-browsers' option just lists browsers and immediately exits app.
// Therefore, we don't need process other args
Copy link
Contributor

Choose a reason for hiding this comment

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

NOTE: the '-list-browsers' option only lists browsers and immediately exits the app.
Therefore, we don't need to process other arguments.

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 37c3dd3 have passed. See details.

@VasilyStrelyaev
Copy link
Contributor

\r-

.catch(done);
});

it("Should parse screenshots path and ensure it's existence", function (done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

one more - it's -> its

Copy link
Contributor

Choose a reason for hiding this comment

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

or even better
Should parse the screenshot path and ensure it exists

@VasilyStrelyaev
Copy link
Contributor

\r-

@AlexanderMoskovkin
Copy link
Contributor

Is this an indents issue or it's ok?
2015-10-16_1840

@inikulin
Copy link
Contributor Author

@AlexanderMoskovkin Definitely no. Need to figure out optimal string lengths with the final texts (which we now have thanks to @VasilyStrelyaev)

@@ -42,7 +42,7 @@
CURRENT_TEST_STEP_NAME: nextStep ? stepNames[nextStep - 1] : 'Test initialization',
BROWSER_STATUS_URL: '{{{browserStatusUrl}}}',
TAKE_SCREENSHOT_ON_FAILS: {{{takeScreenshotOnFails}}},
FAIL_ON_JS_ERRORS: {{{failOnJsErrors}}},
SKIP_JS_ERRORS: {{{failOnJsErrors}}},
Copy link
Contributor

Choose a reason for hiding this comment

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

{{{failOnJsErrors}}} should be changed with {{{skipJsErrors}}} here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes!

@AlexanderMoskovkin
Copy link
Contributor

/r-

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit cb0cae6 have failed. See details.

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 0302899 have passed. See details.

@inikulin
Copy link
Contributor Author

FPR

@AlexanderMoskovkin
Copy link
Contributor

lgtm

it works nice on my side

@kirovboris
Copy link
Collaborator

lgtm

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit f4231d8 have failed. See details.

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 3622661 have passed. See details.

@inikulin
Copy link
Contributor Author

ping @churkin

@churkin
Copy link
Contributor

churkin commented Oct 21, 2015

lgtm

@churkin
Copy link
Contributor

churkin commented Oct 21, 2015

Waiting for @VasilyStrelyaev

.option('-b, --list-browsers', 'output the available browser aliases')
.option('-r, --reporter <name>', 'specify the reporter type to use')
.option('-p, --report-path <path>', 'specify the path to which the report file should be saved')
.option('-s, --screenshots <path>', 'enable screenshot capturing and specify the path to save them to')
Copy link
Contributor

Choose a reason for hiding this comment

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

oops... 'them' doesn't relate to anything anymore...
enable screenshot capturing and specify the path to save the screenshots to

@VasilyStrelyaev
Copy link
Contributor

/r-

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 3520ca3 have passed. See details.

@VasilyStrelyaev
Copy link
Contributor

lgtm

VasilyStrelyaev added a commit that referenced this pull request Oct 21, 2015
@VasilyStrelyaev VasilyStrelyaev merged commit cf35a75 into DevExpress:master Oct 21, 2015
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.

6 participants