Test Suite » History » Version 3
Kornelius Kalnbach, 10/07/2010 02:07 AM
1 | 1 | Kornelius Kalnbach | h1. Test Suite |
---|---|---|---|
2 | 1 | Kornelius Kalnbach | |
3 | 1 | Kornelius Kalnbach | h2. How to |
4 | 1 | Kornelius Kalnbach | |
5 | 1 | Kornelius Kalnbach | 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 |
6 | 1 | Kornelius Kalnbach | |
7 | 1 | Kornelius Kalnbach | <pre> |
8 | 1 | Kornelius Kalnbach | svn co http://svn.rubychan.de/coderay/branches/0.9/ coderay |
9 | 1 | Kornelius Kalnbach | cd coderay |
10 | 1 | Kornelius Kalnbach | rake test |
11 | 1 | Kornelius Kalnbach | </pre> |
12 | 1 | Kornelius Kalnbach | |
13 | 1 | Kornelius Kalnbach | Wait for it to finish. Dots and green is good, E's, F's and red is bad. (Segmentation fault is very bad.) |
14 | 1 | Kornelius Kalnbach | |
15 | 1 | Kornelius Kalnbach | h2. Relevance |
16 | 1 | Kornelius Kalnbach | |
17 | 1 | Kornelius Kalnbach | 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. |
18 | 1 | Kornelius Kalnbach | |
19 | 1 | Kornelius Kalnbach | It is also a nice benchmark, and has been used by the JRuby team and others to compare Ruby implementations. |
20 | 1 | Kornelius Kalnbach | |
21 | 1 | Kornelius Kalnbach | h2. Screenshot |
22 | 1 | Kornelius Kalnbach | |
23 | 3 | Kornelius Kalnbach | !http://redmine.rubychan.de/attachments/159/coderay-testsuite.png! |
24 | 1 | Kornelius Kalnbach | |
25 | 2 | Kornelius Kalnbach | Yes, it's quite colorful :D |