Cypress: Cypress output is not readable in Jenkins

Created on 5 Dec 2018  ·  2Comments  ·  Source: cypress-io/cypress

Output log from Jenkins running on Windows

17:32:45 > cypress "run"
17:32:45 
17:32:59 It looks like this is your first time using Cypress: 3.1.3
17:32:59 
17:32:59 [?25l[17:32:59]  Verifying Cypress can run C:\Users\jenkins\AppData\Local\Cypress\Cache\3.1.3\Cypress [started]
17:33:22 [17:33:22]  Verifying Cypress can run C:\Users\jenkins\AppData\Local\Cypress\Cache\3.1.3\Cypress [completed]
17:33:22 [?25h
17:33:22 Opening Cypress...
17:33:23 
17:34:42 
17:34:43 ====================================================================================================
17:34:43 
17:34:43   (Run Starting)
17:34:43 
17:34:43   ┌────────────────────────────────────────────────────────────────────────────────────────────────�
17:34:43   │ Cypress:    3.1.3                                                                              │
17:34:43   │ Browser:    Electron 59 (headless)                                                             │
17:34:43   │ Specs:      1 found (Page1.spec.js)                                                            │
17:34:43   └────────────────────────────────────────────────────────────────────────────────────────────────�
17:34:43 
17:34:43 
17:34:43 ────────────────────────────────────────────────────────────────────────────────────────────────────
17:34:43                                                                                                     
17:34:43   Running: Page1.spec.js...                                                                (1 of 1) 
17:35:21 
17:35:21 
17:35:21   Page1 - valid data
17:35:35 
    � goes to next page after entering valid data (7441ms)

Most helpful comment

This is not an issue with Cypress since Cypress logs output just fine on everything else, the difference in program running & capturing the output is the only variable.
Your issue is with Jenkins on Windows: https://medium.com/pacroy/how-to-fix-jenkins-console-log-encoding-issue-on-windows-a1f4b26e0db4

Change your encoding to UTF-8 and you're good to go..

Someone please close, not an issue!

All 2 comments

This is not an issue with Cypress since Cypress logs output just fine on everything else, the difference in program running & capturing the output is the only variable.
Your issue is with Jenkins on Windows: https://medium.com/pacroy/how-to-fix-jenkins-console-log-encoding-issue-on-windows-a1f4b26e0db4

Change your encoding to UTF-8 and you're good to go..

Someone please close, not an issue!

Thanks @andezzat
Closing

Was this page helpful?
0 / 5 - 0 ratings