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

Smart Testing not filter/select tests with Maven 3.6.3 #451

Open
rlapao opened this issue Nov 6, 2020 · 1 comment
Open

Smart Testing not filter/select tests with Maven 3.6.3 #451

rlapao opened this issue Nov 6, 2020 · 1 comment

Comments

@rlapao
Copy link

rlapao commented Nov 6, 2020

Issue Overview

I'm trying to use Arquillian Smart Testing but after doing all the setup steps on the installation guide

Expected Behaviour

I expect only the recent tests to be runned and not all the tests from years old commits.

Current Behaviour

I have created the extension file on my project base: "./.mvn/extensions.xml"

<?xml version="1.0" encoding="UTF-8"?>
<extensions>
  <extension>
    <groupId>org.arquillian.smart.testing</groupId>
    <artifactId>maven-lifecycle-extension</artifactId>
    <version>0.0.10</version>
  </extension>
</extensions>

When I execute the following command:
mvn clean test -Dsmart.testing.mode="selecting" -Dsmart.testing="new" -Dscm.last.changes=1

I get the debug messages of the plugin, and the target file is generated however all tests are runned and in an arbitrary order:

[INFO] Scanning for projects...
[INFO] Smart Testing Extension - Using configuration from /<my_project_root_folder>/smart-testing.yml
DEBUG: Smart Testing Extension - Version: 0.0.10
DEBUG: Smart Testing Extension - Applied user properties: {smart.testing=new, smart.testing.mode=selecting, scm.last.changes=1}
[INFO] Smart Testing Extension - Enabling extension.
DEBUG: Smart Testing Extension - Enabling Smart Testing 0.0.10 for plugin [maven-surefire-plugin] in <my_project_name> module
...
Smart Testing Extension - Modified pom stored at: /<my_project_root_folder>/target/smart-testing/reporting/smart-testing-effective-pom.xml

On the documentation it is referred to execute the following command on project base folder:
curl -sSL https://git.io/v5jy6 | bash

But when o do that I receive the following error:
.Version 3.6.3 is not supported.

Additional Information

I'm using:
Arquillian 0.0.10
Maven 3.6.3
Surefire 3.3.3-M5
JUnit 5.7.0

<details>
 <summary>3.6.3</summary>
 Maven home: /usr/share/maven
 Java version: 1.8.0_272
 openjdk version "1.8.0_272"
   OpenJDK Runtime Environment (build 1.8.0_272-8u272-b10-0ubuntu1~20.04-b10)
   OpenJDK 64-Bit Server VM (build 25.272-b10, mixed mode)
 Default locale: en_US, platform encoding: UTF-8
 OS name: "Ubuntu", version: "20.04.1 LTS", arch: "amd64"
</details>
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