garris/BackstopJS

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

Open

#311 opened on Oct 11, 2016

View on GitHub
 (19 comments) (0 reactions) (0 assignees)JavaScript (6,510 stars) (601 forks)batch import
help wanted

Description

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.

Contributor guide