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

Keep TestCafe running for rapid development #1624

Closed
jvanoostveen opened this issue Jul 18, 2017 · 13 comments
Closed

Keep TestCafe running for rapid development #1624

jvanoostveen opened this issue Jul 18, 2017 · 13 comments
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: enhancement The accepted proposal for future implementation.
Milestone

Comments

@jvanoostveen
Copy link

Are you requesting a feature or reporting a bug?

Feature request.

What is the current/expected behavior?

After each testrun, TestCafe stops and closes the browser window(s).
During the development of the integration tests, the startup and teardown of TestCafe is very time consuming.
It would be nice to have TestCafe remain open/active and watching for changes in the test files. If a change is made, the current running tests would abort and the updated test files loaded and executed. All this without TestCafe doing it's browser resize dance and bootstrapping :).

If such behavior is already possible, please direct me to the documentation :).

@tamlyn
Copy link

tamlyn commented Nov 2, 2017

I've been evaluating Cypress alongside Testcafe and watch mode is something that they really do right. It's so fast it makes writing E2E tests feel as good as writing unit tests. I would love to see something similar in Testcafe.

@AlexanderMoskovkin
Copy link
Contributor

AlexanderMoskovkin commented Nov 2, 2017

Hi, thanks for your feedback. I believe the watch mode is a very useful thing. I guess we'll provide some news about this soon

@pierreh
Copy link

pierreh commented Jan 31, 2018

Is there any update on this feature? We would really appreciate it. Thanks!

@AlexanderMoskovkin
Copy link
Contributor

Hi @pierreh,

It's in the testing stage now and you can already try it. Take a look at the DevExpress/TestCafe Live repository. Any early feedback is appreciated.

@pierreh
Copy link

pierreh commented Jan 31, 2018

Thanks Alexander, looking forward to it. We have just decided to adopt TestCafe and run both endpoint tests and browser tests in one package.
I hope in the future TestCafe can be integrated into other runners as well, like AVA.

@xcb6
Copy link

xcb6 commented Feb 5, 2018

@AlexanderMoskovkin
Copy link
Contributor

Hi @xcb6,

testcafe-live is broken

Could you please clarify what do you mean? You can't install it or can't run tests?

I call the following command on my machine and it runs tests succesfully:

npm install testcafe testcafe-live -g
testcafe-live chrome d:\tests\example\example.js

@xcb6
Copy link

xcb6 commented Feb 5, 2018

just follow https://github.com/DevExpress/testcafe-live => 404 (page not found)

@AlexanderMoskovkin
Copy link
Contributor

oops. you're right. Fixed

@xcb6
Copy link

xcb6 commented Feb 5, 2018

feedback (npm install) => very very great !!!! it's ok on win7

@AlexanderMoskovkin
Copy link
Contributor

AlexanderMoskovkin commented Feb 6, 2018

Hi everyone who is interested in this feature. We've done some work and published the testcafe-live module. The full description about it you can read in the TestCafe Live repository.
It would be greatly appreciated if you try it and provide us with your feedback!

/cc @jvanoostveen @chandureddivari @kartojal, @tamlyn @jonataswalker @gmschouten @fiws @noderat @RickHoving @FabioAntunes @Dattaya @tijhaart @ganlanyuan @ervoiox @chinjon @ablipan @pierreh @xcb6

@AlexanderMoskovkin AlexanderMoskovkin added TYPE: enhancement The accepted proposal for future implementation. and removed TYPE: proposal labels Feb 19, 2018
@AlexanderMoskovkin
Copy link
Contributor

We've done this in TestCafe Live so I close the issue. I guess we'll add info about it to the Readme soon.

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

5 participants