garris/BackstopJS

How do I setup backstop to run with Slimerjs on Windows 8?

Open

#311 建立於 2016年10月11日

在 GitHub 查看
 (19 留言) (0 反應) (0 負責人)JavaScript (6,510 star) (601 fork)batch import
help wanted

描述

So I've gone through a bunch of the issues relating to getting slimerjs working. I have gotten it to work fine under linux (by just following the instructions in the readme) but under Windows it has been kind of a bear.

I have backstop in C:\backstop.

I have installed slimerjs globally.

I have set an environment variable called SLIMERJS_EXECUTABLE and set it to the slimerjs path: C:\Users\appdata\roaming\npm\node_modules\slimerjs\lib\slimer

Changing the engine in backstop.json at this point and attempting to run my tests results in an error (could not find application.ini).

I read somewhere that copying over application.ini and omni.ja helps. I did so and slimerjs now appears to start but none of my tests will run. It just sits there: image

I read in some other issues that the path to casper_scripts has to be an absolute path, so I have updated that path in C:\backstop\backstop.json, but this doesn't seem to change anything.

I have also read that I need to add some paths to require.paths in slimerjs but I'm not exactly sure where I'm supposed to add those?

If anyone has a set of steps/paths/files to modify under Windows, or tell me what I'm missing above, some help would be great.

貢獻者指南