Hi Marvin,

really like and actually need the rule approach - as opposed to runner -
since few years. That's why I created rule-them-all originally -
https://github.com/rmannibucau/rule-them-all.

TomEE also has the same spirit with its
[Single]ApplicationComposerRule/ApplicationRule/ContainerRule rules which
are integrated with JAXRS and most of EE stack (
https://github.com/apache/tomee/blob/120a33c7b4de07ae01c17978ea37d88a911ea860/container/openejb-core/src/test/java/org/apache/openejb/junit/ContainerApplicationRuleTest.java
or
https://github.com/apache/tomee/blob/120a33c7b4de07ae01c17978ea37d88a911ea860/server/openejb-http/src/test/java/org/apache/openejb/server/httpd/ResourcesTest.java
)

Think it could makes sense to have a CdiRule in deltaspike reusing the
CdiRunner logic.



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-02-24 1:06 GMT+01:00 John D. Ament <[email protected]>:

> Marvin,
>
> Definitely interesting.  I've considered such an approach before, but never
> saw it implemented, so kudos.  There's a few things I see missing.
>
> - Examples.  How do I use these things?  What does a test based on Justify
> look like with CDI support?
>
> - Publishing.  This library isn't built/deployed out to maven central or
> bintray as far as I can tell.  This means users need to build it
> themselves.  Convenience binaries are so useful, especially when there's no
> build script.
>
> John
>
> On Mon, Feb 22, 2016 at 11:39 PM Marvin Toll <[email protected]>
> wrote:
>
> > DeltaSpike Colleagues,
> >
> >
> >
> > We haven't shared this until now. since there was not a lot to talk about
> > until it was working.
> >
> >
> >
> > Ford has partnered with an Open Source team to utilize a 100% rule-based
> > testing approach that wraps JUnit 4. As part of this effort, the CdiRuner
> > was mostly eliminated in favor of a JstConfigureCdiForMethodRule Rule:
> >
> >
> >
> >
> >
> >
> http://ped.gtcgroup.com/_jst_configure_cdi_for_method_rule_8java_source.html
> >
> >
> >
> >
> > A light weight JstSatisfyAnnotationOnTestMethodRunner runner does remain
> if
> > required:
> >
> >
> >
> >
> >
> >
> http://ped.gtcgroup.com/_jst_satisfy_annotation_on_test_method_runner_8java_
> > source.html
> > <
> http://ped.gtcgroup.com/_jst_satisfy_annotation_on_test_method_runner_8java_source.html
> >
> >
> >
> >
> > The Open Source project is called Justify at:
> >
> >
> >
> >           http://pedcentral.com/hands-on/justify/
> >
> >
> >
> > Any thoughts or feedback are welcomed.
> >
> >
> >
> > _Marvin
> >
> >
>

Reply via email to