Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Debugging TestRun

Ivan Nikulin edited this page May 31, 2016 · 4 revisions

You can debug TestRun workflow using DEBUG environment variable. If debugging enabled tescafe will log following events to console:

  • tescafe:test-run:{userAgent}:driver-message - incoming message from Driver.
  • tescafe:test-run:{userAgent}:command - TestRun started execution of the command.

Using locally

You can enable debugging by specifying environment variable.

Example using gulp:

DEBUG=testcafe:test-run:* gulp test-functional

This will log all kinds of messages for all user-agents. As you see you can use wildcards (*) to filter messages.

Filtering examples:

DEBUG=testcafe:test-run:Chrome*:* gulp test-functional

Will log only message for Chrome only.

DEBUG=testcafe:test-run:*:error gulp test-functional

Will log only error messages.

Using in Travis tasks

Just like in local usage you need to specify environment variable. You can do it for the specific task in .travis.yml file.

Example:

language: node_js
matrix:
 include:
  - node_js: "0.10"
    env: GULP_TASK="test-server"
  - node_js: "4"
    env: GULP_TASK="test-server"
  - node_js: "stable"
    env: GULP_TASK="test-server"
  - node_js: "stable"
    env: GULP_TASK="test-client-travis"
  - node_js: "stable"
    env: GULP_TASK="test-functional" DEBUG="testcafe:test-run:*"
 fast_finish: true

branches:
  except:
    - /^greenkeeper-.*$/

notifications:
 email: false

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.