# File lib/buildr/core/test.rb, line 42 def select_from(project) # Look for a suitable test framework based on the compiled language, # which may return multiple candidates, e.g. JUnit and TestNG for Java. # Pick the one used in the parent project, if not, whichever comes first. candidates = frameworks.select { |framework| framework.applies_to?(project) } parent = project.parent parent && candidates.detect { |framework| framework.to_sym == parent.test.framework } || candidates.first end