Jenkins + CasperJS

I have a series of interface tests written in CasperJS that I need to run in Jenkins. Here's the command I run from the command line casperjs test ./src/tests/**/ts_*.js --xunit=xunit.xml. This runs the tests and saves the xunit file. OK. When my Jenkins runs the same command, it loads from the first test page and spits out this error: "Process the missing file descriptors" and directs me to: https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes + from + build

It provides an explanation and several specific tasks related to the OS. The environment in which this will run will end up being Linux, but my development environment is Windows, and I don't understand the workaround that they provide. What is this file and how does it fit Jenkins?

Does anyone have any experience using CasperJS tests using Jenkins?

+3
source share
2 answers

I installed jenkins as a service and used the default settings.

I solved the same problem for Windows.

if you work as a service and the default home directory (c: / program files (x86) / jenkins /) you need to change the path to another regular folder (ex.c: / jenkins / ").

SET JENKINS_HOME=c:\jenkins\

0
source

What am I doing with the Jenkins and the box office:

I am creating a task with the string parameter 'tests' that accepts * .js or the specified test and try to run the tests using Build -> Execute shell

cd ~/test_directory
casperjs test ${tests}
0
source

All Articles