Project

General

Profile

Test Suite » History » Version 7

Version 6 (Kornelius Kalnbach, 10/07/2010 02:09 AM) → Version 7/8 (Kornelius Kalnbach, 09/14/2011 02:44 AM)

h1. Test Suite

h2. How to

You can run the CodeRay test suite if you have a UNIX with Ruby, Bundler, Git, Subversion and Subversion. Ruby. I assume you also have a color terminal then :P

<pre>
git clone git://github.com/rubychan/coderay.git svn co http://svn.rubychan.de/coderay/branches/0.9/ coderay
cd coderay
</pre>

Run the basic
rake test suite:

<pre>

rake
</pre>

and the scanner tests (will download from separate repository):

<pre>
rake test:scanners
</pre>

Wait for it to finish. Dots and green are good, E's while E's, F's, and F's red are 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 (as of Ruby 1.8) 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