loki: Failing all tests on Github Actions pipeline
Hi,
Iโm trying to integrate this awesome tool in our company application pipeline. Locally I get all the snapshots Passing, but when it arrives into Github actions, somehow, all the snapshots failed. This is my Loki configuration:
module.exports = {
diffingEngine: 'looks-same',
chromeTolerance: 20,
chromeLoadTimeout: 120000,
configurations: {
'chrome.desktop': {
target: 'chrome.app',
width: 1920,
height: 1080,
deviceScaleFactor: 1,
mobile: false,
},
},
}
And the command that is being executed is:
nx build-storybook backoffice && loki --reactUri file:./dist/storybook/backoffice --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox'
Am I doing anything wrong ?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (4 by maintainers)
@GorillaDevq, nope. I just added threshold for failing test๐
Iโm not sure if this is what youโre looking for, but Loki itself runs test in CI (Node.js and Docker) using GitHub Actions (previously using Travis) Example build and configuration used to run Loki in CI ๐
GitHub Actions
Travis
Iโll try and give you some feedback
Hi, the recommendation is to run the loki tests in docker which will ensure the local and CI environment are identical. Looking at your configuration, the
chromeTolerance: 20sticks out as looking very high.