testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

A test report has too small line length on Travis

Open zation opened this issue 9 years ago • 7 comments

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

zation avatar May 09 '17 09:05 zation

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

AlexanderMoskovkin avatar May 09 '17 11:05 AlexanderMoskovkin

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

inikulin avatar May 10 '17 10:05 inikulin

@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 avatar May 10 '17 12:05 zation

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

inikulin avatar May 10 '17 12:05 inikulin

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

zation avatar May 10 '17 14:05 zation

@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.

inikulin avatar May 10 '17 14:05 inikulin

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[bot] avatar Mar 29 '19 00:03 lock[bot]