@AndreyBelym is working on Travis-CI with phantomjs or Chrome (you don't need SauceLabs to run test in Chrome)
I'm working on "page model" pattern
Working on the using with gulp recipe
I've added one more idea: Using with Grunt (https://www.npmjs.com/package/grunt-testcafe)
I think, recipe with TDD example may be usefull
In terms of circleci, my tests are just working with the following in my circle.yml file:
machine:
node:
version: 7.6.0
I tested breaking changes as well. Works.
@miherlosev
hi @mjhea0
We will create a recipe for circle ci in one of the upcoming sprints
@miherlosev thanks!
how about coupling testcafe with a bdd tool?
What bdd tool do you want to couple with testcafe?
I saw the cucumberjs example -> https://github.com/helen-dikareva/testcafe-cucumber-demo/blob/master/features/step_definitions/github.js. Looks good!
I would love to be able to use mocha, but as of now mocha needs the tests to be ran with mocha to expose the API -> https://github.com/mochajs/mocha/issues/1849. This looks like a similar issue for testcafe. Any way to programmatically require or import in the necessary methods so I can just use mocha as the runner?
https://github.com/mjhea0/testcafe-example/blob/bdd/tests/bdd.js
@mjhea0 I'm not sure it will be possible to cooperate mocha with TestCafe, since later uses a lot of magic in test and fixture calls, so you will need to use them, instead of mocha's methods. However, we have a feature request open to support BDD style tests (nested fixtures + reporting): https://github.com/DevExpress/testcafe/issues/792 Add your 馃憤 to the issue if you are interested and we consider adding it to the planned feature list.
Do you have any recipes for circle 2.0? @inikulin
@mjhea0 We don't have any recipes for circle at the moment.
I have circle 1 complete. I am working through Circle 2 at the moment. Happy to add them as recipes when I get Circle 2 working.
Running into some problems with xvfb and the display. Can I show you what I have thus far?
@mjhea0 Sure, feel free to share anything you have.
@mjhea0 - i'm about to start trying to use testcafe w/ circle 2.0. Any more luck on that?
@rstudner Yes, I got it working. I'll share the script with you later today.
@rstudner I have not looked at this in like 4 months, but here it is:
version: 2
defaults: &defaults
docker:
- image: circleci/node:7-browsers
working_directory: ~/tests
jobs:
build:
<<: *defaults
parallelism: 1
steps:
- checkout
- run:
name: Install dependencies
command: |
npm install testcafe
- run:
name: Run tests
command: |
mkdir /tmp/artifacts;
testcafe chrome 'tests/test.js' -S -s tmp/artifacts
Is there any support for WebStorm debugging?
@eltiare, we've just published a topic about debugging in WebStorm:
https://devexpress.github.io/testcafe/documentation/recipes/debug-in-webstorm.html
@VasilyStrelyaev: awesome. Thank you!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.
Most helpful comment
I have circle 1 complete. I am working through Circle 2 at the moment. Happy to add them as recipes when I get Circle 2 working.
Running into some problems with xvfb and the display. Can I show you what I have thus far?