On Sep 12, 2016, at 11:42 AM, Scott Marlow <smarlow(a)redhat.com>
wrote:
On 09/12/2016 11:00 AM, Brian Stansberry wrote:
>
>> On Sep 12, 2016, at 9:31 AM, Scott Marlow <smarlow(a)redhat.com> wrote:
>>
>> Hi,
>>
>> I'm thinking that the NoSQL unit tests should be optional, since most
>> WildFly developers won't have access to a local NoSQL database server.
>> Currently, to run the unit tests, you have to define "nosql-tests"
(e.g.
>> ./integration-tests.sh -Dnosql-tests).
>>
>
> The standard pattern for this kind of switch is something like
>
> -Dts.nosql
Thanks, we will switch over to -Dts.nosql
>
> So please stick with that pattern.
>
> How does this related to -DallTests, which right now turns on all tests except the
mixed domain ones.
I don't think -DallTests should include the NoSQL tests, since many developers will
not have (local) access to all of the NoSQL databases.
I did a -DallTests run and the NoSQL tests were included.
Ok, some pom wizardry will be needed to avoid that. The testsuite/mixed-domain module
isn’t run via -DallTests so looking at the setup of that one my lead you to the magic
potion. Or someone reading this can tell you. ;)
Is there any property that defines how to have "(local) access to all of the NoSQL
databases”?
I ask because in the case of testsuite/mixed domain, there is — a property that tells the
testsuite the dir to look in to find zips of previous releases. So then we just used that
property to control whether the maven profile for that part of the suite is enabled and
killed 2 birds with one stone. There’s no -Dts.mixed-domain involved as that would just
have been an extra thing to set.
>
> That “allTests” is an unfortunate name as it’s not all any more, but it’s widely
known and used as the simple way to execute the vast bulk of the testsuite.
>
>> As we work towards our first (NoSQL integration) pull requests for
>> WildFly master (and some small wildfly-core changes to the Phase class),
>> does anything else need to be optional?
>>
>> Currently we are building WildFly to include the NoSQL driver artifacts,
>> for the specific versions of the drivers that we support. We also allow
>> other versions of the NoSQL drivers to be brought into WildFly, as long
>> as they are (API) compatible with the version that we (loosely)
>> integrate with.
>>
>> Thanks for the feedback!
>>
>> Scott
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
--
Brian Stansberry
Manager, Senior Principal Software Engineer
JBoss by Red Hat