garris/BackstopJS

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

Open

#311 aperta il 11 ott 2016

Vedi su GitHub
 (19 commenti) (0 reazioni) (0 assegnatari)JavaScript (601 fork)batch import
help wanted

Metriche repository

Star
 (6510 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor