XSLT Tests: Difference between revisions
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
= Running the tests = | = Running the tests = | ||
<ol> | |||
<li> [http://developer.mozilla.org/en/docs/Configuring_Build_Options#Choose_an_Application Compile Seamonkey]. This is needed to run the tests until the user interface is ported to Firefox. | |||
</li> | |||
<li> | |||
From now on, we will refer to <code>${TESTHOME}/xml-xalan/test/tests</code> (this is the directory that has <code>conf</code> and <code>conf-gold</code> as subdirectories) as <code>$TESTDIR</code>. We will refer to your Mozilla source directory as <code>$MOZDIR</code>. | |||
</li> | |||
<li> Go to <code>$TESTDIR</code> and run <code>$MOZDIR/content/xslt/tests/buster/helper/generate-rdf.pl</code>. This will generate a file called <code>xalan.rdf</code> in <code>$TESTDIR</code>. Steps 1-3 might look something like: | |||
<pre>cd ~/xml-alan/test/tests | |||
perl ~/mozilla/debug/mozilla/content/xslt/tests/buster/helper/generate-rdf.pl | |||
</pre> | |||
</li> | |||
<li> | |||
Start a build that does NOT have the changes being tested in it. Go to the Tools > Web Development > Xalan Tests menu option. This opens a "Xalan testcase harness" window. Resize this window to be big enough to show at least three lines of the tree at the bottom of the window. | |||
</li> | |||
<li> | |||
Click the "Browse" button and browse for the <code>xalan.rdf</code> file that you created in step 3. | |||
</li> | |||
<li> | |||
Select the "conf" item in the tree at the bottom of the "Xalan testcase | |||
harness" window. | |||
</li> | |||
<li>Click the button labeled "run checked tests"</li> | |||
<li>Wait until the test completes.</li> | |||
<li>Go to File > Save Results and save the results to a file of your choice.</li> | |||
<li>Repeat step 4 with a build that DOES have the changes being tested in it.</li> | |||
<li>Go to File > Import results and import the results you saved in step 8.</li> | |||
<li>Repeat steps 5-8.</li> | |||
<li>Compare the results -- the "Success" column will have the results with the changes being tested, while the "Previously" column is the baseline.</li> | |||
</ol> | |||
Revision as of 21:39, 15 January 2006
Getting the XSLT test suite
- Pick a directory under which the tests will live. From now on it will be referred to as
$TESTHOME. Note that the only thing created in$TESTHOMEwill be anxml-xalan/directory. - set CVSROOT to
:pserver:anoncvs@cvs.apache.org:/home/cvspublic - Check out the
xml-xalan/testmodule.
For example, on a Unix system you might do
cd ~ cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co xml-xalan/test
Running the tests
- Compile Seamonkey. This is needed to run the tests until the user interface is ported to Firefox.
-
From now on, we will refer to
${TESTHOME}/xml-xalan/test/tests(this is the directory that hasconfandconf-goldas subdirectories) as$TESTDIR. We will refer to your Mozilla source directory as$MOZDIR. - Go to
$TESTDIRand run$MOZDIR/content/xslt/tests/buster/helper/generate-rdf.pl. This will generate a file calledxalan.rdfin$TESTDIR. Steps 1-3 might look something like:cd ~/xml-alan/test/tests perl ~/mozilla/debug/mozilla/content/xslt/tests/buster/helper/generate-rdf.pl
- Start a build that does NOT have the changes being tested in it. Go to the Tools > Web Development > Xalan Tests menu option. This opens a "Xalan testcase harness" window. Resize this window to be big enough to show at least three lines of the tree at the bottom of the window.
-
Click the "Browse" button and browse for the
xalan.rdffile that you created in step 3. - Select the "conf" item in the tree at the bottom of the "Xalan testcase harness" window.
- Click the button labeled "run checked tests"
- Wait until the test completes.
- Go to File > Save Results and save the results to a file of your choice.
- Repeat step 4 with a build that DOES have the changes being tested in it.
- Go to File > Import results and import the results you saved in step 8.
- Repeat steps 5-8.
- Compare the results -- the "Success" column will have the results with the changes being tested, while the "Previously" column is the baseline.