Closed bryanrasmussen closed 7 years ago
looking at it some more. If I create by hand a folder test-results, that folder gets deleted when I run the tests above. Then when it gets to writeLogFile in phantomflow.js and it gives the message
Please take a look at the error log for more info 'D:\projects\repositories\TDC\se-gui-comparisontool\test-results/log/error_1.log'
writeLogFile is actually getting the error
{ Error: ENOENT: no such file or directory, open 'D:\projects\repositories\TDC\se-gui-comparisontool\test-results\log\error_1.log' at Error (native) errno: -4058, code: 'ENOENT', syscall: 'open', path: 'D:\projects\repositories\TDC\se-gui-comparisontool\test-results\log\error_1.log' }
If the folder is not present it looks like it never gets created.
I got your example running after stripping out the excess code in test.js. For that test suite you don't need a connect server (because you've already got a hosted site). To simplify things I also removed all the command-line args stuff as well.
My suggestion is to strip it back to the basics then add more until it breaks, which will hopefully diagnose your problem.
fwiw, I'm on node v4.4.5, perhaps there is a dependency problem with v6 / v7 ?
Ok. thanks. maybe the connect or the versions are the problems - don't think its command line because that stuff was working before, but anyway as I am going to have to branch with environment variables in the most important cases I guess I can get rid of that as well.
On Fri, Dec 23, 2016 at 11:50 AM, James Cryer notifications@github.com wrote:
I got your example running after stripping out the excess code in test.js. For that test suite you don't need a connect server (because you've already got a hosted site). To simplify things I also removed all the command-line args stuff as well.
My suggestion is to strip it back to the basics then add more until it breaks, which will hopefully diagnose your problem.
fwiw, I'm on node v4.4.5, perhaps there is a dependency problem with v6 / v7 ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Huddle/PhantomFlow/issues/51#issuecomment-268972391, or mute the thread https://github.com/notifications/unsubscribe-auth/AATEQCF7Hvxesm8E644J9v2di2jCmEqAks5rK6degaJpZM4LQ5Pu .
hey, I am on windows 10. I am getting a response like the following when I try to run my phantom flow process.
I figured it was my casperjs process, and it seemed at first when I tried to run the casperjs process it couldn't find my phantomjs, but after a lot of trouble with that I got phantomjs installed and added to my path. After which when I did the following
D:\projects\repositories\TDC\se-gui-comparisontool\node_modules\phantomflow\node_modules\casperjs\bin\casperjs.exe D:/projects/repositories/TDC/se-gui-comparisontool/node_modules/phantomflow/lib/start.js --flowincludes=D:/projects/repositories/TDC/se-gui-comparisontool/include --flowtestsroot=D:/projects/repositories/TDC/se-gui-comparisontool/phantomflow_tests/ --flowphantomcssroot=D:/projects/repositories/TDC/se-gui-comparisontool/node_modules/phantomflow/node_modules/phantomcss --flowlibraryroot=D:/projects/repositories/TDC/se-gui-comparisontool/node_modules/phantomflow/lib --flowoutputroot=D:/projects/repositories/TDC/se-gui-comparisontool/test-results/data/ --flowcoverageroot=D:/projects/repositories/TDC/se-gui-comparisontool/test-results/coverage/ --flowxunitoutputroot=D:/projects/repositories/TDC/se-gui-comparisontool/test-results/xunit/ --flowvisualdebugroot=D:/projects/repositories/TDC/se-gui-comparisontool/test-results/debug/ --flowvisualstestroot=D:/projects/repositories/TDC/se-gui-comparisontool/phantomflow_tests/visuals/ --flowvisualsoutputroot=D:/projects/repositories/TDC/se-gui-comparisontool/test-results/visuals/ --flowdebug=1 --hideelements= --flowtests=flows/responsive.test.js
casperjs returned URL Changed:"about:blank" without other info.
I would think that it had something to do with the test-results folder, because it says it can't find. But I created it, and the report folder inside that, and then when I ran it again those were deleted - which makes sense, the report is overwritten every time it is generated?
My code to run things is the following js
and inside of my phantomflow_tests/flows folder is a single test that just reuses a version of the responsive.test.js from the examples:
Any ideas why it is not working on my system - anything you want me to try to see if I can get it to work?