您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

TESTS_HELP.md 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ## How to run the tests
  2. To run the test, you need ruby and the following gems installed : rake, rspec (>=2), json
  3. ### How to install ruby and the required gems from source
  4. Make sure you have the required tools to compile it
  5. # apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev
  6. Download ruby source and extract the source
  7. $ cd ~/
  8. $ wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
  9. $ tar xvzf stable-snapshot.tar.gz
  10. Install it
  11. $ ./configure && make
  12. # make install
  13. download the last version of RubyGems from here
  14. http://rubyforge.org/frs/?group_id=126
  15. Extract the source
  16. $ tar xzvf rubygems-1.8.4.tgz
  17. Install it
  18. $ cd rubygems-1.8.4
  19. # ruby setup.rb
  20. If you want to update RubyGems
  21. # gem update --system
  22. Install the required gems
  23. # gem install rake rspec json
  24. That's it!
  25. ### How to run the tests
  26. $ rake
  27. ### How to create a test
  28. - Create a template file `somename.html`
  29. - Create a javascript file with data and functions `somename.js`
  30. - Create a file the expected result `somename.txt`
  31. Done!