Test Suite » History » Version 7
Kornelius Kalnbach, 09/14/2011 02:44 AM
1 | 1 | Kornelius Kalnbach | h1. Test Suite |
---|---|---|---|
2 | 1 | Kornelius Kalnbach | |
3 | 1 | Kornelius Kalnbach | h2. How to |
4 | 1 | Kornelius Kalnbach | |
5 | 7 | Kornelius Kalnbach | You can run the CodeRay test suite if you have a UNIX with Ruby, Bundler, Git, and Subversion. I assume you also have a color terminal then :P |
6 | 1 | Kornelius Kalnbach | |
7 | 1 | Kornelius Kalnbach | <pre> |
8 | 7 | Kornelius Kalnbach | git clone git://github.com/rubychan/coderay.git |
9 | 1 | Kornelius Kalnbach | cd coderay |
10 | 1 | Kornelius Kalnbach | </pre> |
11 | 1 | Kornelius Kalnbach | |
12 | 7 | Kornelius Kalnbach | Run the basic test suite: |
13 | 7 | Kornelius Kalnbach | |
14 | 7 | Kornelius Kalnbach | <pre> |
15 | 7 | Kornelius Kalnbach | rake |
16 | 7 | Kornelius Kalnbach | </pre> |
17 | 7 | Kornelius Kalnbach | |
18 | 7 | Kornelius Kalnbach | and the scanner tests (will download from separate repository): |
19 | 7 | Kornelius Kalnbach | |
20 | 7 | Kornelius Kalnbach | <pre> |
21 | 7 | Kornelius Kalnbach | rake test:scanners |
22 | 7 | Kornelius Kalnbach | </pre> |
23 | 7 | Kornelius Kalnbach | |
24 | 7 | Kornelius Kalnbach | Wait for it to finish. Dots are good, E's and F's are bad. (Segmentation fault is very bad.) |
25 | 7 | Kornelius Kalnbach | |
26 | 1 | Kornelius Kalnbach | |
27 | 1 | Kornelius Kalnbach | h2. Relevance |
28 | 1 | Kornelius Kalnbach | |
29 | 6 | 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 (as of Ruby 1.8) to the max. |
30 | 1 | Kornelius Kalnbach | |
31 | 1 | Kornelius Kalnbach | It is also a nice benchmark, and has been used by the JRuby team and others to compare Ruby implementations. |
32 | 1 | Kornelius Kalnbach | |
33 | 1 | Kornelius Kalnbach | h2. Screenshot |
34 | 1 | Kornelius Kalnbach | |
35 | 3 | Kornelius Kalnbach | !http://redmine.rubychan.de/attachments/159/coderay-testsuite.png! |
36 | 1 | Kornelius Kalnbach | |
37 | 2 | Kornelius Kalnbach | Yes, it's quite colorful :D |