Maven pom 有工作黄瓜



当我运行非常基本的黄瓜测试时,我不断收到小黄瓜"找不到格式化程序"错误。

有什么想法吗?我真的真的希望人们只是让 IT 变得简单,设置东西/咆哮总是很痛苦

下面是我的 maven pom,但首先是我得到的错误:

java.lang.NoClassDefFoundError: gherkin/formatter/Formatter

无论如何,我会给任何提出这个解决方案的人 500 赏金,这太荒谬了。

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
<groupId>cucumber-a</groupId>
<artifactId>cucumber-a</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>cucumber</name>
<description>Basic Playground for Cucumber</description>
<dependencies>
<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>1.2.4</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>test</scope>
</dependency>
</dependencies>
<build>
 <sourceDirectory>src</sourceDirectory>
  <plugins>
     <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.5.1</version>
     <configuration>
        <source>1.8</source>
        <target>1.8</target>
     </configuration>
    </plugin>
  </plugins>

好的,所以黄瓜文档很糟糕。

那里的每个人都应该感到难过。

但!一个了不起的人提出了这个骷髅文件:这太神奇了

这是黄瓜乐趣所需的所有东西(哈!),它支持专家,蚂蚁,随便什么。

这非常有用,不容忽视 - 我认为我的问题是损坏的 maven 下载(我的防火墙中途启动了 ?idk),但使用它只是让一切都变得可爱。

感谢不会阅读本文的人,因为idk如何标记它!

最新更新