arquillian / smart-testing

We know which tests you want to run.
Apache License 2.0
25 stars 12 forks source link

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

Open rlapao opened 3 years ago

rlapao commented 3 years ago
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>
rlapao commented 3 years ago

StackOverflow link: https://stackoverflow.com/questions/64623352/im-trying-to-use-arquillian-smart-testing-lib-but-without-success?noredirect=1#comment114284720_64623352