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

testReportDirectory cannot be changed #87

Open
johnktims opened this issue Apr 30, 2016 · 0 comments
Open

testReportDirectory cannot be changed #87

johnktims opened this issue Apr 30, 2016 · 0 comments

Comments

@johnktims
Copy link

<plugin>
    <groupId>de.saumya.mojo</groupId>
    <artifactId>rspec-maven-plugin</artifactId>
    <version>1.1.5</version>
    <extensions>true</extensions>
    <configuration>
        <testReportDirectory>${project.build.directory}</testReportDirectory>
    </configuration>
    <executions>
        <execution>
            <phase>test</phase>
            <goals>
                <goal>test</goal>
            </goals>
        </execution>
    </executions>
</plugin>

I've tried relative and absolute paths, but reports always end up in ${project.build.directory}/surefire-reports.

The reason I want to reconfigure this is because Jenkins looks for the test results in target/surefire-reports and I want to use the rspec_junit_formatter but I haven't found a way to specify the formatter I want rspec-maven-plugin to use so I add it to rspec.args like this:

mvn clean install -Drspec.args="--format RspecJunitFormatter --out target/surefire-reports/TEST-rspec-junit.xml ./src/test/ruby/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant