Как сохранить отчеты Cucumber из Project Path? - PullRequest
0 голосов
/ 30 января 2019

У меня есть тест автоматизации, который создает отчеты Cucumber, но я хочу сохранить отчеты Cucumber.json и Cucumber вне структуры проекта.

Теперь у меня есть следующий код:

@ RunWith (Cucumber.class) @CucumberOptions (strict = false, features = "src / main / java / FaixaVS_NaoCadastrado / FaixaVS_NaoCadastrado / FaixaVS_.feature ", glue = {" StepDefinition "}, format = {" pretty "," json: target / cucumber.json "}, tags = {" ~ @ ignore "})

Ина POM.XML:

 <plugin>
    <groupId>net.masterthought</groupId>
    <artifactId>maven-cucumber-reporting</artifactId>
    <version>2.0.0</version>
    <executions>
      <execution>
        <id>execution</id>
        <phase>verify</phase>
        <goals>
          <goal>generate</goal>
        </goals>
        <configuration>
          <projectName>Compra no Receba em Casa</projectName>
          <outputDirectory>${project.build.directory}/cucumber-pretty/cucumber-reports</outputDirectory>
          <cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
          <skippedFails>true</skippedFails>
          <enableFlashCharts>false</enableFlashCharts>
          <checkBuildResult>false</checkBuildResult>
          <buildNumber>v01</buildNumber>
        </configuration>
      </execution>
    </executions>
  </plugin>
</plugins>

Как изменить способ сохранения этого отчета, например путь к рабочему столу?Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...