junit-test-example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
junit-test-example [2008/10/12 08:19] – jtkorb | junit-test-example [2008/10/12 10:38] – jtkorb | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **Updates** | ||
+ | * Project 3 neither reads from standard input nor writes gradeable text to standard output, so the mechanism below to redirect these two streams to files is not necessary for this project. | ||
+ | * For command-line testing in the UNIX/Linux environment, | ||
+ | |||
====== Testing Your Project ====== | ====== Testing Your Project ====== | ||
//Test early, test often.// | //Test early, test often.// | ||
- | |||
- | **Updates** | ||
- | * Project 3 neither reads from standard input nor writes gradeable text to standard output, so the mechanism below to redirect these two streams to files is not necessary for this project. | ||
- | * For command-line testing in the UNIX/Linux environment, | ||
Use a [[http:// | Use a [[http:// | ||
Line 11: | Line 11: | ||
Both DrJava and Eclipse include JUnit support. | Both DrJava and Eclipse include JUnit support. | ||
- | ===== Testing Programs that Read from Standard In and Write to Standard Out ===== | + | |
+ | ====== Testing Programs that Read from Standard In and Write to Standard Out ====== | ||
For projects that take input from the command line (or redirected from a file) and produce gradable results to standard out, automated testing requires that these streams be redirected in the JUnit test class. | For projects that take input from the command line (or redirected from a file) and produce gradable results to standard out, automated testing requires that these streams be redirected in the JUnit test class. | ||
Line 83: | Line 84: | ||
$ ./tester SpellCheckerTester | $ ./tester SpellCheckerTester | ||
- | For more general-purpose use, put the '' | + | For more general-purpose use, put the '' |
junit-test-example.txt · Last modified: 2008/10/25 08:58 by jtkorb