Skip to content

Commit

Permalink
Add command-line running info to cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaff committed Aug 18, 2008
1 parent 5a7824a commit c80a254
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Wed Jul 23 11:13:58 EDT 2008
#Fri Aug 15 11:44:58 EDT 2008
eclipse.preferences.version=1
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
Expand Down Expand Up @@ -43,7 +43,7 @@ org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=protected
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
Expand Down
6 changes: 5 additions & 1 deletion acknowledgements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@

2008 Aug 1
Nat Pryce: Found defect in treatment of validation errors from custom
subclasses of the legacy JUnit4ClassRunner.
subclasses of the legacy JUnit4ClassRunner.

2008 Aug 18
Nir Soffer: Suggested adding to the cookbook information about running
running JUnit from the command line.
4 changes: 3 additions & 1 deletion doc/ReleaseNotes4.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
### Documentation ###

- A couple classes and packages that once had empty javadoc have been
doc'ed.
doc'ed.

- Added how to run JUnit from the command line to the cookbook.
14 changes: 11 additions & 3 deletions doc/cookbook/cookbook.htm
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,19 @@ <h2>Running Tests</h2>
How do you run your tests and collect their results?
<p>Once you have tests, you'll want to run them. JUnit provides tools
to define the suite to be run and to display its results. To run tests and see the
results on the console, run:
results on the console, run this from a Java program:
<blockquote>
<pre><tt>org.junit.runner.JUnitCore.runClasses(TestClass1.class, ...);&nbsp;
</tt></pre>
<pre>
org.junit.runner.JUnitCore.runClasses(TestClass1.class, ...);
</pre>
</blockquote>
or this from the command line, with both your test class and junit on the classpath:
<blockquote>
<pre>
java org.junit.runner.JUnitCore TestClass1.class [...other test classes...]
</pre>
</blockquote>

You make your JUnit 4 test classes accessible to a TestRunner designed to work with earlier versions of JUnit,
declare a static method <i>suite</i>
that returns a test.
Expand Down

0 comments on commit c80a254

Please sign in to comment.