[hibernate-dev] How to run tests on the MongoDB branch
Steve Ebersole
steve at hibernate.org
Fri Apr 27 12:09:34 EDT 2012
Sanne, you dropped after just after, but I wanted to say that I would
certainly help y'all move this to Gradle (I just feel such empathy
watching people struggle with Maven).
However, you mentioned issues with Antlr and Maven. You should be
aware that at the moment, Gradle only supports Antlr 2; I contributed
that support, so its logical right ;) Strong donated some support for
Antlr 3, which I believe is the version you use, but those changes have
not been expected and there was some questions about it. You could
certainly just use his work as-is in the meantime. Just wanted to
point out that this is something to be aware of.
On Fri 27 Apr 2012 06:53:18 AM CDT, Sanne Grinovero wrote:
> Continuing the IRC chat here:
> <emmanuel> I force enabled it
> <emmanuel> still it uses localhost
> <emmanuel> funnily enough 5 tests pass
> <emmanuel> gtg, train arived
>
> This is how it's designed to work, please forget about profiles:
>
> if you run (using your build script):
>
> $ sh build
>
> it builds all modules *except* mongodb
>
> if you run the same command prefixing it with the env parameters you want:
>
> $ MONGODB_HOSTNAME=127.0.0.7 sh build
>
> it will build all modules, including mongodb as well, using the
> hostname you defined for tests..
>
> That should be good to test one-shot; of course I'd expect frequent
> builders like yourself to define the variable globally so you won't
> have to type it over again.
> You can use profiles as well to enable it, in which case it will use
> localhost:defaultmongodbPort , so in your case you should just enable
> the environment settings and leave profiles alone.
>
> 5 tests will pass even with a wrong environment as they are true "unit
> tests" not actually needing MongoDB.
>
> Cheers,
> Sanne
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
steve at hibernate.org
http://hibernate.org
More information about the hibernate-dev
mailing list