Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use testacular with play framework

I have download the testacular my project is based on play framework But I don't know how to write the config.js that match the play framework Here is something what I know

framework:play

basepath:''

files:app/assets/javascripts/footageURL.js

cli-port:9000

browser:Chrome

autowatch:yes

Can anyone give me some advise?

like image 634
karl li Avatar asked Dec 19 '12 06:12

karl li


1 Answers

I have solve it by my self

Here is what I do

  1. make sure you have

    • GitHub
    • npm(Node Packaged Modules)
    • nvm(Node Version Manager)
    • node.js
  2. I download the source code from GitHub
    :~/Development$ git clone https://github.com/vojtajina/testacular.git

  3. Then you will see a dictionary called testacular .
    :~/Development$ cd testacular

  4. Before compile this ,you should download require.js
    sudo npm -g install

  5. After that it should be OK for you to run the source code
    ~/testacular$ grunt build

Here is how to write test with jasmine and then add the files to the testacular.conf.js

like image 176
karl li Avatar answered Oct 20 '22 02:10

karl li