On Thu, Aug 28, 2014 at 07:51PM, Jean-Marc Spaggiari wrote:
> Was more thinking about the first. Having a way to automate groovy shell
> commands testing in the build.

I am pretty sure there is. After all, Gradle (a build DSL based, using Groovy
as the underlying language) has unit testing in it ;)

The issue with testing of these scripts, as far as I can see, is that they
might need some sort of mocking involved to work around the fact that these
command expect a running HBase cluster. Makes sense?

As for the 'pain vs pain' comment: I am not really sure why. Groovy is really
just a Java with added benefits of real lambdas, dynamic bindings, etc.

Cos

> Le 2014-08-28 19:45, "Mikhail Antonov" <[email protected]> a écrit :
> 
> > JM - do you mean writing unit or integration tests for groovy commands
> > themselves, or to be able to write HBase tests in Groovy? If later
> > one, then I'd think HBase tests may benefit a lot in conciseness if
> > written in Groovy.
> >
> > -Mikhail
> >
> > 2014-08-28 16:39 GMT-07:00, Jean-Marc Spaggiari <[email protected]>:
> > > Are we not just going to replace a pain by another pain?
> > >
> > > Can we build test suites for Groovy? I mean, not just use groovy to build
> > > test, but build a test script which will test groovy? I think it's one of
> > > the main issues today with JRuby shell.
> > >
> > > I prefer Groovy over JRuby but not sure if the move really worse it.
> > >
> > >
> > > 2014-08-28 19:06 GMT-04:00 Konstantin Boudnik <[email protected]>:
> > >
> > >> Guys,
> > >>
> > >> I've been looking into some service scripting around HBase lifecycle
> > >> management, etc. and couldn't help but wonder why those were written in
> > >> Ruby
> > >> of all JVM languages? Historical legacy aside, it seems that current
> > >> HBase
> > >> is
> > >> still using JRuby 1.6.5 vs the latest at 1.9+ or perhaps even later.
> > >>
> > >> At any rate, I was wondering if replacing Ruby with a more Java-like
> > >> scripting
> > >> extension (if the scripting-2-Java API bridge is what indeed desired)
> > >> would be
> > >> of any interest here? An obvious choice would be Groovy
> > >> (http://groovy.codehaus.org/). One of the main reasons behind my
> > proposal
> > >> is
> > >> stack simplification: Bigtop is very actively using Groovy as a
> > scripting
> > >> language of choice to do builds, develop smoke tests, etc. So, it is
> > >> already
> > >> there and guaranteed to be installed as a part of any Bigtop-derived
> > >> Hadoop
> > >> distro. There are other benefits, where, if desired, one can just write
> > >> Java
> > >> code inside of a Groovy script, without a need to learn yet another
> > >> language
> > >> like Ruby.
> > >>
> > >> This is perhaps not of an immediate priority for the community, but if
> > >> there's
> > >> enough interest, I can give it an initial shot to demo'ed what I am
> > >> really
> > >> talking about.
> > >>
> > >> Thoughts?
> > >> --
> > >> Regards,
> > >>   Cos
> > >>
> > >>
> > >
> >
> >
> > --
> > Thanks,
> > Michael Antonov
> >

Reply via email to