You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Various cleanup of RunTests.cmd, in particular setting all suites to write similarly-named log files directly to \tests. Also updating the docs and adding .gitignore for test logs. (changeset 1219334)
<h3>4. Building F# Core Unit Tests for .NET 4.0</h3>
418
+
421
419
<p>This uses the proto compiler to build the unit tests that check some parts of FSharp.Core.dll and FSharp.Compiler.dll. You must have NUnit installed.</p>
<p>Below are the very basic commands you can use to execute the included unit tests and general compiler/runtime tests.
425
+
For more details on how to run, debug, and write tests, see<ahref="tests\TESTGUIDE.html">tests\TESTGUIDE.html</a>.</p>
427
426
428
-
<p>There are language tests under the<tt>tests</tt> directory. The test apparatus uses batch files, assuming perl is installed. You can run these on Windows using:</p>
427
+
<p>There are language tests under the<tt>tests</tt> directory. The test apparatus uses batch files, assuming perl is installed. You can run these on Windows using:</p>
Copy file name to clipboardExpand all lines: tests/TESTGUIDE.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -331,14 +331,14 @@ <h3>Test Suites</h3>
331
331
332
332
<p>The script<tt>tests\RunTests.cmd</tt> has been provided to make execution of the above 3 suites very simple. You can kick off a full test run of any of the above suites like this:
333
333
<pre>
334
-
RunTests.cmd fsharp
335
-
RunTests.cmd fsharpqa
336
-
RunTests.cmd coreunit
334
+
RunTests.cmd fsharp
335
+
RunTests.cmd fsharpqa
336
+
RunTests.cmd coreunit
337
337
</pre>
338
338
339
339
<p><tt>RunTests.cmd</tt> sets a handful of environment variables which allow for the tests to work, then puts together and executes the appropriate command line to start the specified test suite.
340
340
341
-
<p>If anytestcases fail, the FSharpandFSharpQA suites willdrop failure detail logs to<tt>tests\runpl.log</tt>or<tt>tests\fsharpqa\source\runpl.log</tt>,respectively. If execution is halted by the user before completion, the failures file name is instead<tt>xrunpl.log</tt>.
341
+
<p>Alltestexecution logsandresult files willbe dropped into the<tt>tests</tt>folder, and have file names matching<tt>FSharp_*.*</tt>,<tt>FSharpQA_*.*</tt>, or<tt>CoreUnit_*.*</tt>.
342
342
343
343
<p><tt>RunTests.cmd</tt> is mostly just a simple wrapper over<tt>tests\fsharpqa\testenv\bin\RunAll.pl</tt>, which has capabilities not discussed here. More advanced test execution scenarios can be achieved by invoking<tt>RunAll.pl</tt> directly. Run<tt>perl tests\fsharpqa\testenv\bin\RunAll.pl -?</tt> to see a full list of flags and options.
344
344
<h3>More Details</h3>
@@ -366,6 +366,6 @@ <h3>More Details</h3>
366
366
<h3>Other Tips</h3>
367
367
<ul>
368
368
<li>NGen-ing the F# bits (fsc, fsi, FSharp.Core, etc) will result in tests executing much faster</li>
369
-
<li>Tests from the FSharp and FSharpQA suites can be run in parallel using the<tt>-procs:N</tt> argument to<tt>RunAll.pl</tt>, or by uncommenting the relevant line in<tt>RunTests.cmd</tt>.</li>
369
+
<li>Tests from the FSharp and FSharpQA suites can be run in parallel using the<tt>-procs:N</tt> argument to<tt>RunAll.pl</tt>, or by uncommenting the relevant line in<tt>RunTests.cmd</tt> (look for PARALLEL_ARG).</li>