               :else [:div.alert.iconified {:class (if build-succeeded? "alert-info" "alert-danger")}
                      [:div [:img.alert-icon {:src (common/icon-path
                                                    (if build-succeeded? "Info-Info" "Info-Error"))}]]
-                     (tests-ad owner)]))])))))
+                     (tests-ad owner (:language project))]))])))))
 
 (defn circle-yml-ad []
   [:div

          [:div.card.sub-head-content {:class (str "sub-head-" (name selected-tab))}
           (case selected-tab

             :tests (om/build build-tests-list build-data)

             :build-timing (om/build build-timings/build-timings {:build build
                                                                  :project project

                                   (sort-by first))))
              [:div.loading-spinner common/spinner]))])))))

(defn tests-ad [owner language]
      [:div
       "Help us provide better insight around your tests and failures. "
       [:a {:href (case language
           "Clojure" "/docs/test-metadata#test2junit-for-clojure-tests"
           "Ruby" "/docs/test-metadata#rspec"
           "JavaScript" "/docs/test-metadata#js"
           "Python" "/docs/test-metadata#python"
           "Java" "/docs/test-metadata#java-junit-results-with-maven-surefire-plugin"
           "/docs/test-metadata#metadata-collection-in-custom-test-steps")}
        "Set up your test runner to output in JUnit-style XML"] ", so we can:"
       [:ul
        [:li "Show a summary of all test failures across all containers"]
        [:li "Identify the slowest test"]
        [:li "Balance tests between containers when using properly configured parallelization"]]
       ])

(defmulti format-test-name test-model/source)

