Как запустить тест исходя из этого pom.xml?
При выполнении команды mvn test -Dtags="@5254" или же mvn test -Dtags="@10107" запускается один и тот же тест, который мне не нужен и выдаёт вот такую ошибку:
Думал проблема в кодировке и применил эту команду, но ничего не изменилось:
set "JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8"
Исходя из моего pom.xml, как мне запустить тест с тегами @5254 или же @1111
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<glue>
<package>ru.hpsm.steps</package>
</glue>
<tags>
<expression>${tags}</expression>
</tags>
<featuresDirectory>${features}</featuresDirectory>
<cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
<namingScheme>pattern</namingScheme>
<namingPattern>Parallel{c}IT</namingPattern>
<parallelScheme>FEATURE</parallelScheme>
<!-- This is optional, required only if you want to specify a custom template for the generated sources (this is a relative path) -->
<customVmTemplate>src/test/java/ru/hpsm/steps/runners/cucumber-junit-runner.java.vm
</customVmTemplate>
Ошибка:
PS C:\Users\Семён\IdeaProjects\Hspm\hpsm_em> mvn test -Dtags="@5254"
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< sm.mos.ru:HPSM >---------------------------
[INFO] Building HPSM 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:2.4.3:resources (default-resources) @ HPSM ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 13 resources
[INFO]
[INFO] --- compiler:3.6.1:compile (default-compile) @ HPSM ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- cucumber-jvm-parallel:5.0.0:generateRunners (generateRunners) @ HPSM ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.149 s
[INFO] Finished at: 2024-04-23T10:34:35+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.temyers:cucumber-jvm-parallel-plugin:5.0.0:generateRunners (generateRunners) on project HPSM: Execution generateRunners of goal com.github.temyers:cucumber-jvm-parallel-plugin:5.0.0:gene
rateRunners failed: Parser errors:
[ERROR] (4:1): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Р¤С?Р?РєС?РёР?Р?Р°Р?: РўР?С?С?'
[ERROR] (8:3): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'РЎС?Р?Р?Р°С?РёР№: 11111111 РЎС?Р?Р?Р°С?РёР№ 1 Р?Р?С? 4me С?Р?С?С?Р?Р?С?Р№'
[ERROR] (11:5): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Р?Р°Р?Р? РёР?РёС?РёР°Р?РёР·Р°С?РёС? С?Р?С?С?Р?Р?С?С? Р?Р°Р?Р?С?С?'
[ERROR] (12:7): expected: #TagLine, #FeatureLine, #Comment, #Empty, got '| Р?Р?С?Р?Р?Р?Р?Р?Р°С?_1 | РўР?С?С? |'
[ERROR] (14:5): expected: #TagLine, #FeatureLine, #Comment, #Empty, got 'Р? Р°Р?С?Р?С?РёР·Р?Р?Р°С?С?С?С? Р?Р° С?С?Р?Р?Р?Р? 4me С?Р?С?Р?Р· РЎР?Р?Р?Р РїР?Р? Р?Р?Р?РёР?Р?Р? "user4me_1"'
[ERROR] (15:0): unexpected end of file, expected: #TagLine, #FeatureLine, #Comment, #Empty
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Какую команду следует ввести, чтобы запустить именно тест с тегом @tags?