Skip to content

Commit

Permalink
Look for the metric_fu report in the project's base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mrowe committed Jul 28, 2014
1 parent 535821c commit 0e78ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public boolean shouldExecuteOnProject(Project project)

public void analyse(Project project, SensorContext context)
{
File resultsFile = new File("tmp/metric_fu/report.yml");
File resultsFile = new File(moduleFileSystem.baseDir(), "tmp/metric_fu/report.yml");
List<File> sourceDirs = moduleFileSystem.sourceDirs();
List<File> rubyFilesInProject = moduleFileSystem.files(FileQuery.onSource().onLanguage(project.getLanguageKey()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void testShouldAnalyzeProject() throws IOException
functions.add(new RubyFunction("validate", 5, 10));

Measure measure = new Measure();
expect(moduleFileSystem.baseDir()).andReturn(new File("bar"));
expect(moduleFileSystem.files(isA(FileQuery.class))).andReturn(sourceFiles);
expect(moduleFileSystem.sourceDirs()).andReturn(sourceDirs);
expect(metricfuComplexityYamlParser.parseFunctions(isA(String.class),isA(File.class))).andReturn(functions);
Expand Down

0 comments on commit 0e78ba0

Please sign in to comment.