Project

General

Profile

Test Suite » History » Version 4

Version 3 (Kornelius Kalnbach, 10/07/2010 02:07 AM) → Version 4/8 (Kornelius Kalnbach, 10/07/2010 02:08 AM)

h1. Test Suite

h2. How to

You can run the CodeRay test suite if you have a UNIX with Subversion and Ruby. 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/159/coderay-testsuite.png!

Yes, it's quite colorful :D