Testcafe: A test report has too small line length on Travis

Created on 9 May 2017  路  7Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

Travis

What is the expected behavior?

The report should not be wrapped every word.

How would you reproduce the current behavior (if this is a bug)?

Just run testcafe in travis. BTW, the report displays correctly in my local terminal.

Specify your

  • operating system: travis
  • testcafe version: 0.15.0
  • node.js version: 6
server Auto-locked reporting bug

Most helpful comment

@zation No worries!
@AlexanderMoskovkin I guess as a prevention we can set lower limit on tty string length. E.g. default value should work fine for most cases. I'll add it to current sprint.

All 7 comments

Hi,

It seems something went wrong when TestCafe calculated the viewport width.
To resolve the problem set the teminal columns setting in the .travis.yml file:

before_install:
   - stty cols 78

Hmm, I've seen this issue once, but was not able to reproduce it since then. @zation Is problem persists after retry?

@inikulin yes, I tried @AlexanderMoskovkin solution, it works. Below is our previous travis config:

sudo: false
dist: trusty

language: node_js
node_js:
  - "6"
# cache yarn and node_modules directory
cache:
  yarn: true
  directories:
    - node_modules

branches:
  only:
    - master

notifications:
  email: false

before_script:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - npm test

@zation Is problem persists if you remove stty cols 78 suggested by @AlexanderMoskovkin ?

sorry for my bad English... The problem is solved after I set stty cols 78

@zation No worries!
@AlexanderMoskovkin I guess as a prevention we can set lower limit on tty string length. E.g. default value should work fine for most cases. I'll add it to current sprint.

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

devmondo picture devmondo  路  3Comments

darkowic picture darkowic  路  3Comments

madroneropaulo picture madroneropaulo  路  3Comments

Turkirafaa picture Turkirafaa  路  3Comments

fnlctrl picture fnlctrl  路  3Comments