       .stringByReplacingOccurrencesOfString("{root}", withString: root)
   }
 
+  private func computeDependenciesToBuild() -> [Roostfile.Dependency] {
+    return roostfile.dependencies.filter { (dependency: Roostfile.Dependency) -> Bool in
+      // Include everything in a test target
+      if self.package.forTest { return true }
+
+      if dependency.onlyTest { return false }
+
+      return true
+    }
+  }
+
 }



  func compile() -> CompilationStatus {
    // TODO: Have it return a Bool indicating whether dependencies were
    //       changed to let us know if we need to recompile
    let dependencies = ensureHaveDependencies()
    ensureDirectoryExists(buildDirectory)

    checkPreconditions()
    runPrecompileCommands()

    }
  }// checkPreconditions

  private func compileDependency(dependency: Roostfile.Dependency, _ directory: String) -> CompilationResult {
    let path = "\(directory)/Roostfile.yaml"
    let contents = readFile(path)
