English 中文(简体)
履历:
原标题:Running JBehave from gradle?

是否有办法从梯度中管理JBehave? 目前,我有一个<代码>JUnitStories的子类别,规定一个等级和上下限:storyPaths到不同的<代码>。

This task can supposedly do what I need, but I m not sure how I integrate it with what I have.

task spec << {
    ant.taskdef(
            name:  jbehave ,
            classname:  org.jbehave.ant.RunStoriesAsEmbeddables ,
            classpath: configurations.jbehave.asPath)

    ant.jbehave(
            includes:  src/main/specs ,
            generateViewAfterStories: true
    )
}

我怎么能用我的故事来从梯度任务开始呢?

最佳回答

I m 不知道“JBehave plugin for Gradle. 如果JBehave有共同之处,你可以通过Gradle s test的任务进行联合测试。 否则,上述任务也看重。 很显然,它期望JBehave来源于src/main/specs。 (我不知道是否需要汇编)。 它还希望有一个包含JBehave图书馆的<代码>。 你可以这样说:

configurations { jbehave }
dependencies {
    jbehave ...
} 
问题回答

暂无回答




相关问题
Groovy - how to exit each loop?

I m new to Grails/Groovy and am trying to find a node in a an xml file; I ve figured out how to iterate over all of them, but I want to exit the loop when the target node is found. I ve read that ...

Eclipse Spring Builder set properties with Groovy beans

I typically use groovy to construct simple bean but the Spring IDE plugin to eclipse fails to build when I try to set a property that is generated by groovy without an explicit setter. For example, ...

How can I get this snippet to work?

I d like to port a little piece of code from Ruby to Groovy, and I m stuck at this: def given(array,closure) { closure.delegate = array closure() } given([1,2,3,4]) { findAll { it > 4} ...

Changing the value in a map in Groovy

This is about a very basic program I m writing in Groovy. I have defined a map inside a method: def addItem() { print("Enter the item name: ") def itemName = reader.readLine() print(...

Is functional Clojure or imperative Groovy more readable?

OK, no cheating now. No, really, take a minute or two and try this out. What does "positions" do? Edit: simplified according to cgrand s suggestion. (defn redux [[current next] flag] [(if flag ...

热门标签