Hey Richard,
I'm not suggesting you put it there. Unfortunately, this kind of test is not going to be possible until we have what you suggested, which is an arquillian container that deploys to an actual running forge distribution.
And that isn't going to happen in the near future, sorry. It's way too much work when Final is on the close horizon. I'm not sure there are really any good alternatives at the moment.
We could consider a CI job that would deploy the richfaces plugin, but we'll need to think about what it means to deploy a plugin to a maven repository (when it really has very little value being there except for this purpose.)
~Lincoln
Hi Lincoln,
What do you mean by "*If* the richfaces plugin were deployed in a maven repository". Is it currently? If not, do you intend to? Or are you suggesting I
could deploy it to a local repo or something?
But beyond this, couldn't we test this as a 'real' integration test somehow? Does Forge have that? An integration test that actually executes the dist? I
would like this anyway, because one of my bugs worked fine in all test-harness tests but not in the actual dist. See...
org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle:
// TODO: test this not using annotationSource.getClass().getClassLoader() (will require integration test)
Regards,
Richard.
On 28/01/2012 7:22 AM, Lincoln Baxter, III wrote:
> Unless you can reference the richfaces plugin code itself, there is no way to do this currently, since the plugin sources need to be available to the
> test-runner (like using any other library in a test.)
>
> If the richfaces plugin were deployed in a maven repository, you could include it in your pom, specifying <scope>test</scope>.
>
> Otherwise, not possible at the moment because plugins are loaded by JBoss modules, and jboss modules is not used by the test harness (because it would
> not really be possible)
>
> ~Lincoln
>
> On Fri, Jan 27, 2012 at 2:06 AM, Richard Kennard <richard@kennardconsulting.com <mailto:richard@kennardconsulting.com>> wrote:> forge-dev@lists.jboss.org <mailto:forge-dev@lists.jboss.org>
>
> Hi guys,
>
> Can someone help with RichFaces testing? Currently in...
>
> org.jboss.forge.scaffold.faces.FacesScaffoldTest.testGenerateFromEntityWithRichFaces()
>
> ...I have a commented out line...
>
> Project project = setupScaffoldProject();
> // getShell().execute("richfaces setup");
>
> How can I make that line work? How can I get the plugin installed for my test?
>
> Regards,
>
> Richard.
> _______________________________________________
> forge-dev mailing list
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.com
> http://scrumshark.com
> "Keep it Simple"
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev