Test Suite » History » Version 2
Version 1 (Kornelius Kalnbach, 10/07/2010 02:03 AM) → Version 2/8 (Kornelius Kalnbach, 10/07/2010 02:04 AM)
h1. Test Suite
h2. How to
You can run the CodeRay test suite if you have a UNIX with Subversion, Ruby (MRI, JRuby, Rubinius). I assume you also have a color terminal then :P
<pre>
svn co http://svn.rubychan.de/coderay/branches/0.9/ coderay
cd coderay
rake test
</pre>
Wait for it to finish. Dots and green is good, E's, F's and red is bad. (Segmentation fault is very bad.)
h2. Relevance
CodeRay has an extensive test suite with megabytes of example code. It is a nice target for Ruby implementations, since it stresses the possibilities of StringScanner and RegExp to the max.
It is also a nice benchmark, and has been used by the JRuby team and others to compare Ruby implementations.
h2. Screenshot
!http://redmine.rubychan.de/attachments/158/coderay-testsuite.png!
Yes, it's quite colorful :D
!!
h2. How to
You can run the CodeRay test suite if you have a UNIX with Subversion, Ruby (MRI, JRuby, Rubinius). I assume you also have a color terminal then :P
<pre>
svn co http://svn.rubychan.de/coderay/branches/0.9/ coderay
cd coderay
rake test
</pre>
Wait for it to finish. Dots and green is good, E's, F's and red is bad. (Segmentation fault is very bad.)
h2. Relevance
CodeRay has an extensive test suite with megabytes of example code. It is a nice target for Ruby implementations, since it stresses the possibilities of StringScanner and RegExp to the max.
It is also a nice benchmark, and has been used by the JRuby team and others to compare Ruby implementations.
h2. Screenshot
!http://redmine.rubychan.de/attachments/158/coderay-testsuite.png!
Yes, it's quite colorful :D
!!