testthat icon indicating copy to clipboard operation
testthat copied to clipboard

Problem formatting test output expect_snapshot on GitHub CI actions

Open ambica-aas opened this issue 3 years ago • 3 comments

Please help with the problem of different output on the received snapshot in the local PC and compare with the created snapshot on CI (GitHub action). The only difference is the formatting of the output due to the width, which will result in a test failure. See my picture.

obrazek

Thank you for solving the problem. Any workaround would also help.

ambica-aas avatar Jan 26 '22 12:01 ambica-aas

Is you package public? Can you share the code?

gaborcsardi avatar Jan 26 '22 12:01 gaborcsardi

Unfortunately, I do not have permission to publish the code. Repository is private. However, the output of the tested function is the list inside which is the tibble object.

ambica-aas avatar Jan 26 '22 15:01 ambica-aas

I have problems with test results on other developer computers too (screenshots from snapshot_review):

MicrosoftTeams-image (1) MicrosoftTeams-image MicrosoftTeams-image (2)

robozor avatar Mar 03 '22 10:03 robozor

I think you're mostly likely to find help asking at the tibble repo, as they might have some idea why you're seeing differences.

hadley avatar Sep 19 '22 20:09 hadley