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?


I have solve it by my self

Here is what I do

  • make sure you have

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

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

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

  • 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

    链接地址: http://www.djcxy.com/p/11596.html

    上一篇: 分发文件以便收件人无法阅读

    下一篇: 如何使用playacular和play framework