You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
I'm trying to organize screenshots into separate sub-directories to make managing them easier. So, I have three simple test files that just open a URL and take a screenshot. The only code differences in the tests is the url being opened and the screenshotRoot and failedComparisonsRoot because I'm trying to organize the screenshots into sub-directories.
tests/
├── test1.js
├── test2.js
└── test3.js
// test1.jsvarfs=require('fs'),phantomcss=require(fs.absolute(fs.workingDirectory+'/node_modules/phantomcss/phantomcss.js'));casper.test.begin("Test Suite Numero Uno",1,functionsuite(test){phantomcss.init({casper: casper,libraryRoot: fs.absolute(fs.workingDirectory+'/node_modules/phantomcss'),screenshotRoot: fs.absolute(fs.workingDirectory+'/screenshots/test1'),failedComparisonsRoot: fs.absolute(fs.workingDirectory+'/failures/test1'),addLabelToFailedImage: false,mismatchTolerance: 0.01,rebase: casper.cli.get('rebase')});casper.start('http://www.google.com');casper.viewport(1280,800,function(){phantomcss.screenshot('body',2000);});casper.then(functioncheckScreenshots(){phantomcss.compareAll();});casper.run(function(){console.log('\nTHE END.');// phantomcss.getExitStatus(); // pass or fail?test.done();});});
I'm trying to organize screenshots into separate sub-directories to make managing them easier. So, I have three simple test files that just open a URL and take a screenshot. The only code differences in the tests is the
url
being opened and thescreenshotRoot
andfailedComparisonsRoot
because I'm trying to organize the screenshots into sub-directories.I would expect running
casperjs test tests
to end up with this screenshots organization...
However, I end up with the screenshots taken in the second and third suites duplicated into the test1 directory.
The text was updated successfully, but these errors were encountered: