title: Chutzpah running Jasmine in TFS 2012 can't find referenced file under test
body: <p>I am using Chutzpah to run our Jasmine tests.
  I have added the Chutzpah dlls to the solution and updated the build to run *.js tests.</p>
  
  <p>The project structure is as follows:</p>
  
  <pre><code>MyApp.Web
      Scripts
          App
              Home 
                  DateControl.js 
  MyApp.Web.Tests 
      Scripts 
          Jasmine 
          lib
              Chutzpah (dlls) 
          Spec 
              App 
                  Home 
                      DateControlSpecs.js
  </code></pre>
  
  <p>The Jasmine test file uses a reference tag to reference the file to be tested</p>
  
  <pre><code>/// &lt;reference path="../../../../../../App.web/scripts/app/home/datecontrol.js" /&gt;
  </code></pre>
  
  <p>The Jasmine tests are run however I get the following error:</p>
  
  <pre><code>ReferenceError: Can't find variable: dateControl in file
  </code></pre>
  
  <p>dateControl is the object under test.
  If I copy the code to be tested into the Jasmine test file then the tests pass.
  The jasmine tests with the reference tag pass using the Chutzpah Test Adapter in Test Explorer in Visual Studio 2013.</p>
  
  <p>I have no idea why this is not working.</p>
  
  <p><strong>Update</strong></p>
  
  <p>@jessehouwing's answer pointed out the route of the issue for me.</p>
  
  <p>The build folder on the build server has the following structure</p>
  
  <p>bin
      _PublishedWebsites
  src</p>
  
  <p>The jasmine test scripts and libraries are copied to bin whereas the script files under test are copied to both the src directory and the _publishedwebsite directory.</p>
  
  <p>I am looking for an easy to manage solution so that any future devs do not need to know they need to link any new scripts into the test project.</p>