Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a separate path for surefire junit #105

Merged
merged 1 commit into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
*/
package org.sonar.plugins.swift;

import java.util.List;

import com.google.common.collect.ImmutableList;
import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.SonarPlugin;
Expand All @@ -37,7 +36,7 @@
import org.sonar.plugins.swift.lang.core.Swift;
import org.sonar.plugins.swift.surefire.SwiftSurefireSensor;

import com.google.common.collect.ImmutableList;
import java.util.List;

@Properties({
@Property(
Expand Down Expand Up @@ -67,6 +66,13 @@
name = "Path to lizard report",
description = "Relative to projects' root.",
global = false,
project = true),
@Property(
key = SwiftSurefireSensor.REPORTS_PATH_KEY,
defaultValue = SwiftSurefireSensor.DEFAULT_REPORTS_PATH,
name = "Path to surefire junit report",
description = "Relative to projects' root.",
global = false,
project = true)
})
public class SwiftPlugin extends SonarPlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Project;
import org.sonar.api.scan.filesystem.PathResolver;
import org.sonar.plugins.swift.SwiftPlugin;

import java.io.File;

public final class SwiftSurefireSensor implements Sensor {

private static final Logger LOGGER = LoggerFactory.getLogger(SwiftSurefireSensor.class);

public static final String REPORTS_PATH_KEY = "sonar.junit.reportsPath";
public static final String REPORTS_PATH_KEY = SwiftPlugin.PROPERTY_PREFIX + "swiftsurefire.junit.reportsPath";
public static final String DEFAULT_REPORTS_PATH = "sonar-reports/";


Expand Down