我可以用Java在控制台输出中打印cucumber datatable吗?

我可以用Java在控制台输出中打印cucumber datatable吗?,java,maven,cucumber,Java,Maven,Cucumber,例如,如果这是我的功能文件: Scenario: Some dummy scenario Given that I do something with this datatable: | print | this | | and | this | And something else 输出如下所示: Given that I do something with this datatable: And something else 我想知道是

例如,如果这是我的功能文件:

Scenario: Some dummy scenario
    Given that I do something with this datatable:
      | print   | this |
      | and     | this |
    And something else
输出如下所示:

Given that I do something with this datatable:
And something else
我想知道是否可能有类似的输出:

Given that I do something with this datatable:
  | print   | this |
  | and     | this |
And something else
谢谢你的帮助


编辑:根据要求,我的设置详情如下所示


我正在使用Java,这是负责配置的类:

@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty", "html:target/cucumber"},
        monochrome = false,
        glue = {"my.dummy.package"},
        features = {"classpath:dummy.feature"})
public class DummyFT {

    @Test
    public void test() throws IOException {

    }
}
这些测试作为单独的maven目标执行。我的个人资料部分有:

<profile>
    <id>functional-tests</id>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <testSourceDirectory>test/test-functional/java</testSourceDirectory>
                    <includes>
                        <include>**/*FT.java</include>
                    </includes>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</profile>

您使用的是哪种技术堆栈(例如Java、JavaScript、Python等)?您使用什么来运行cumber测试?我使用javaki,您如何运行cumber测试?通过JUnit?测试由maven test完成-我有一个java类,用Cumber注释进行注释,该注释在功能文件和步骤文件之间执行粘合。好的,我明天会做第一件事
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <dependencies>
            <dependency>
                <groupId>org.apache.maven.surefire</groupId>
                <artifactId>surefire-junit47</artifactId>
                <version>${maven.surefire.junit47}</version>
            </dependency>
        </dependencies>
        <executions>
            <execution>
                <goals>
                    <goal>integration-test</goal>
                    <goal>verify</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>${cucumber.version}</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>${cucumber.version}</version>
    <scope>test</scope>
</dependency>
mvn failsafe:integration-test -Pfunctional-tests