I have protractor-image-comparison
working by using checkFullPageScreen
and checkElement
. Baseline
, Actual
and Diff
folders are all created and saved correctly but my question is, when test fails, how do I display the DIFF image in the Jasmine reporter for the failed tests?
My current htmlReporter
in config looks like this...
function setupHtmlReporter (){
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'testReport',
docName: 'testReport.html',
preserveDirectory: false,
jsonsSubfolder:'jsons',
screenshotsSubfolder:'screens',
docTitle: 'Test Result'
}).getJasmine2Reporter());
}
Is there a way to add path to diff folder here?
Or... Is there a better assert tool I can use to display the image diff on failure using jasmine??
question from:
https://stackoverflow.com/questions/65602384/how-to-display-protractor-image-comparison-diff-in-jasmine-reporter 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…