Tag: cucumber jvm

为什么我在Kotlin上运行这个特定的Cucumber步骤时发生ArrayIndexOutOfBoundsException?

我正在运行一个使用Java8和PicoContainer的Cucumber JVM功能文件。 我已经把这些步骤剥去了,所以它们是空的,而且我仍然遇到一个错误。 这是我的功能: Feature: Full Journey Scenario: Can load a typical JIRA csv and calculate the distribution from it Given a typical JIRA export "/closed_only_JIRA.csv" When I import it into Montecarluni Then I should see the distribution """ 6, 15, 3, 14, 2, 5, 6, 8, 5, 10, 15, 4, 2, 1 """ When […]

我如何得到一个黄瓜功能的结果

我正在尝试在JUnit 5 Jupiter中运行Cucumber功能。 我已经从Cucumber-jvm源代码中提取了一些代码,并将其用于JUnit 5的TestFactory 。 它正在工作:当我运行所有JUnit测试(这是Kotlin代码,但同样适用于Java)时,我看到我的功能正在运行: @CucumberOptions( plugin = arrayOf("pretty"), features = arrayOf("classpath:features") ) class Behaviours { @TestFactory fun loadCucumberTests() : Collection<DynamicTest> { val options = RuntimeOptionsFactory(Behaviours::class.java).create() val classLoader = Behaviours::class.java.classLoader val resourceLoader = MultiLoader(classLoader) val classFinder = ResourceLoaderClassFinder(resourceLoader, classLoader) val runtime = Runtime(resourceLoader, classFinder, classLoader, options) val cucumberFeatures = options.cucumberFeatures(resourceLoader) return cucumberFeatures.map<CucumberFeature, DynamicTest> […]