Testcafe: Keep TestCafe running for rapid development

Created on 18 Jul 2017  路  13Comments  路  Source: DevExpress/testcafe

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 :).

Auto-locked enhancement

Most helpful comment

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

All 13 comments

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.

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

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

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.

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.

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

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

oops. you're right. Fixed

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvanoostveen picture jvanoostveen  路  4Comments

devmondo picture devmondo  路  3Comments

madroneropaulo picture madroneropaulo  路  3Comments

calisven picture calisven  路  3Comments

AndreyBelym picture AndreyBelym  路  3Comments