Quantcast
Channel: RasadaCrea rss feeds aggregator
Viewing all articles
Browse latest Browse all 178

Arthur Schiwon: Setup Karma JS test suite for ownCloud on Kubuntu 15.04

$
0
0
Recently I set up the Karma Javascript suite for locally running the Javascript tests for ownCloud . Since it was not totally straight forward to get it up an running, here be my setup notes! First, it requires Node.js. They can be installed right out from the repositories. As I read somewhere, more recent versions are available on some PPA, but this one is sufficient. npm is its package manager. sudo apt install nodejs npm First obstacle: because of a hard coded path somewhere, npm would not be able to find node. A symlink helps: sudo ln -s /usr/bin/nodejs /usr/bin/node Afterwards, we need the karma test suite and the modules which are used by ownCloud. They are installed using npm. You will notice the -g flag, which stands stands for global. If you leave it, the stuff will be installed into the local directory. One time I forget the flag and spent hours figuring out why it is not working. However, this step is supposed to be optional as the autotest script we will run eventually should take care of this. For unknown reasons it did not work for me, so I executed this steps manually once. sudo npm install -g karma sudo npm install -g karma-jasmine sudo npm install -g karma-junit-reporter sudo npm install -g karma-coverage .. cntd

Viewing all articles
Browse latest Browse all 178

Trending Articles