On 2012-01-20 21:03, Marcin Zajączkowski wrote:
> Hi,
> 
> I would like to have a JBehave tests run via maven surefire plugin as the 
> simple JUnit tests. By default surefire doesn't recognize my test classes as 
> JUnit tests. In case of extending JUnitStory/Stories I could override run 
> method and add @Test annotation, but what can I do using embedder-based 
> method like below?

Just for groups archive readers. I modified it to implements Embeddable
and use SpringAnnotatedEmbedderRunner and it works fine as a JUnit test
from Maven.

Marcin


> 
> @RunWith(SpringAnnotatedPathRunner.class)
> @Configure
> @UsingEmbedder
> @UsingSpring(resources = {...})
> @UsingPaths
> public class MyStoriesTest {
> }
> 
> Regards
> Marcin
> 


-- 
http://blog.solidsoft.info/ - Working code is not enough


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to