tomitribe / beryllium

Apache License 2.0
6 stars 6 forks source link

Add support for Cukes in Space and Arquillian #2

Open lordofthejars opened 8 years ago

lordofthejars commented 8 years ago

This project is really interesting as a matcher of microservices and tests but I think it stills need an integration of Arquillian and Cukes in Space to be able to deploy the application automatically.

cchacin commented 8 years ago

@lordofthejars do you mean this?:

@Glues({RestSteps.class, DatabaseSteps.class, CallsSteps.class, RedisKeyValueSteps.class,
               RedisListSteps.class, RedisScoredMembersSteps.class, RedisSteps.class})
@Features({"features/successful-endpoints.feature", "features/redis.feature"})
@RunWith(ArquillianCucumber.class)
public class RestfulSuccessTest {

    @Deployment(testable = false)
    public static Archive<?> createDeployment() {
        return ShrinkWrap.create(WebArchive.class, "test-app.war")
                         .addPackages(true, "org.tomitribe.beryllium")
                         .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
                         .addAsManifestResource("test-persistence.xml", "persistence.xml")
                         .addAsWebInfResource("test-resources.xml", "resources.xml")
                         .addAsWebInfResource("test-openejb-jar.xml", "openejb-jar.xml");

    }
}

https://github.com/tomitribe/beryllium/blob/master/src/test/java/org/tomitribe/beryllium/rest/RestfulSuccessTest.java#L39-L55