<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://159.203.101.162/w/index.php?action=history&amp;feed=atom&amp;title=Unit_Testing</id>
	<title>Unit Testing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://159.203.101.162/w/index.php?action=history&amp;feed=atom&amp;title=Unit_Testing"/>
	<link rel="alternate" type="text/html" href="http://159.203.101.162/w/index.php?title=Unit_Testing&amp;action=history"/>
	<updated>2026-04-19T13:08:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://159.203.101.162/w/index.php?title=Unit_Testing&amp;diff=336&amp;oldid=prev</id>
		<title>James: New page: ==Introduction==  Testing is the most important thing a code monkey ever does. You should always write a [http://www.junit.org/ JUnit] test for each new bit of code (or fix) that you devel...</title>
		<link rel="alternate" type="text/html" href="http://159.203.101.162/w/index.php?title=Unit_Testing&amp;diff=336&amp;oldid=prev"/>
		<updated>2008-08-03T03:38:07Z</updated>

		<summary type="html">&lt;p&gt;New page: ==Introduction==  Testing is the most important thing a code monkey ever does. You should always write a [http://www.junit.org/ JUnit] test for each new bit of code (or fix) that you devel...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
Testing is the most important thing a code monkey ever does. You should always write a [http://www.junit.org/ JUnit] test for each new bit of code (or fix) that you develop. PCGen has a very large and complex code base, and your small change can easily break something unforseen down the line, running the test suite reduces this risk heavily.&lt;br /&gt;
&lt;br /&gt;
Here is how to test the Unit Tests you have written:&lt;br /&gt;
&lt;br /&gt;
# Test: '''ant clean test'''&lt;br /&gt;
# Lather, rinse, repeat.&lt;br /&gt;
&lt;br /&gt;
If all goes well, you will see the success.notice target echo output in ant. If things go wrong, the failure.notice target echoes output instead: investigate the output to see what failed.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can do the same with maven and produce a site report on unit tests: '''maven site'''&lt;br /&gt;
&lt;br /&gt;
The advantages is a nicely linked report with red/green markers and test metrics. The disadvantage is that it takes considerably longer as maven generates many reports, not just the one for unit tests.&lt;br /&gt;
&lt;br /&gt;
Any questions, comments etc are welcome!&lt;/div&gt;</summary>
		<author><name>James</name></author>
		
	</entry>
</feed>