]> Dogcows Code - chaz/vimcoder/blobdiff - README.md
generate TAP output with the default C++ templates
[chaz/vimcoder] / README.md
index 0c51e9f83822a8d3c817b8e7ecfc2a65889ee07c..0872d107c5058bf6a4ec913a84297ee6089df437 100644 (file)
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ Just enter your code into the Vim window and use the regular TopCoder Arena
 applet buttons to compile, test, and submit your code.
 
 **Pro Tip:** If you accidentally close your Vim session, you can get it back
-by switching to a different editor and then switching back to VimCoder
+by switching to a different editor and then switching back to VimCoder.
 Alternatively, the session will also reappear if you switch languages.
 
 Storage Directory Structure
@@ -157,11 +157,11 @@ for your solution.
 This file contains the example test cases that are associated with the
 problem.  The format is pretty simple.  For each test case, there is one line
 for the expected return value followed by each of the method parameters, each
-on its own line.  This file typically read by the driver program (more on this
-later) in order to run the test cases against your code.  While you are coding
-a solution, you may also want to add additional test cases to make sure your
-code is doing what you think it is and to make sure your code doesn't mess up
-on edge cases for which an example test case was not provided.
+on its own line.  This file is typically read by the driver program (more on
+this later) in order to run the test cases against your code.  While you are
+coding a solution, you may also want to add additional test cases to make sure
+your code is doing what you think it is and to make sure your code doesn't
+mess up on edge cases for which an example test case was not provided.
 
 ##### Problem.html
 
@@ -174,16 +174,15 @@ typically shouldn't edit this file.
 
 If there exists a Makefile template for the selected language, it will also be
 filled out and saved in the problem directory.  The purpose of the Makefile is
-to compile your code locally.  Vim contains the command :make which you can
-use to interact with the Makefile.  You also shouldn't need to edit this file
-directly.  Exactly what happens when you use the :make command depends on the
-Makefile template.
+to compile your code locally.  You can execute targets in the Makefile using
+Vim's `:make` command.  You also shouldn't need to edit this file directly.
+Exactly what happens when you use the `:make` command depends on the Makefile
+template.
 
 If you are using the default Makefile template for C++, typing ":make" without
 any arguments will compile your code.  Typing ":make run" will run all of the
 test cases against your code.  Typing ":make test" will also run the test
-cases against your code, up until the first failed test at which point it will
-abort.
+cases against your code, except it will abort at the first failed test.
 
 A Makefile template is not yet provided for any other language, but you can
 write one yourself if you are so inclined.  Read on to learn how templates
@@ -210,6 +209,13 @@ set to C++, the driver code would be in the driver.cc file.  You normally
 don't have to do anything with this file.  It just provides supporting code
 for running the test cases against your code.
 
+The driver should output TAP (Test Anything Protocol) so that tests can be run
+in a test harness such as [prove](http://search.cpan.org/perldoc?prove).  The
+default Makefile template has a `prove` target (type ":make prove") that can
+run the tests in a test harness; the test harness is `prove` unless otherwise
+configured.  TAP output is also very human-readable all by itself, so having
+a test harness isn't really required.
+
 A default driver template is currently only provided for the C++ language.
 You could write your own template if you wanted to.
 
This page took 0.026563 seconds and 4 git commands to generate.