<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Usually, when deployed into an existing infrastructure, there is a need to create additional utilities to assist the test writer. These could include specialized mock objects, or simply bootstrap code that is required to properly initialize the environment. It&amp;#8217;s important these files and environments get loaded before any main testing begins. To help facilitate this, an addon system exists.&lt;/p&gt;
&lt;h1&gt;Adding an Addon&lt;/h1&gt;
&lt;p&gt;An addon gets placed inside of the &lt;code&gt;/addons&lt;/code&gt; directory. Only files immediately under &lt;code&gt;/addons&lt;/code&gt; ending in &lt;code&gt;.php&lt;/code&gt; are considered valid addons. In a complex addon, it is reccomended to hide your additional files one level deeper:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
addons/
 |- myaddon/
 |  |- myaddon_supplement.php
 |  |- another_file.php
 |- myaddon.php
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;By the time the addon is reached, the entire SnapTest environment is available.&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-26T00:47:04-08:00</created-at>
  <id type="integer">270410</id>
  <permalink>extending-snaptest-with-addons</permalink>
  <repository-id type="integer">1880</repository-id>
  <title>Extending SnapTest with Addons</title>
  <updated-at type="datetime">2009-07-19T16:07:54-07:00</updated-at>
  <user-id type="integer">1795</user-id>
</wiki>
