Re: [testng-users] Maven plugin testing with TestNG?

53 views
Skip to first unread message

Cédric Beust ♔

unread,
May 24, 2013, 3:18:38 AM5/24/13
to testng...@googlegroups.com
Hi Dave,

I don't have much experience writing Maven plugins, much less testing them, but maybe someone else on the list does?

-- 
Cédric


-- 
Cédric



On Fri, May 24, 2013 at 12:05 AM, Dave Joyce <david....@gmail.com> wrote:
I'm working on writing my first maven plugin, and I would like to use TestNG for my integration testing. I have looked at maven-plugin-testing-harness, but it depends on JUnit 3.8.1 and provides an AbstractMojoTestCase class which must be extended. I just want to use TestNG for test groups and data-driven testing... I don't want to go back in time to the "old" days of JUnit 3!

Does anyone have advice or experience using TestNG as the framework for maven plugin tests?

-Dave

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mark Derricutt

unread,
May 24, 2013, 5:13:06 AM5/24/13
to testng...@googlegroups.com
For Mojo testing [1] I've tended to stick with using the maven-invoker-plugin with IT tests as sub maven projects.

Tho those tests don't exactly have a TestNG ( or even JUnit ) level of testing really.

[1] https://github.com/talios/clojure-maven-plugin


Cédric Beust ♔ wrote:

Hi Dave,

I don't have much experience writing Maven plugins, much less testing
them, but maybe someone else on the list does?

--
Cédric


--
Cédric



On Fri, May 24, 2013 at 12:05 AM, Dave Joyce <david....@gmail.com
<mailto:david....@gmail.com>> wrote:

    I'm working on writing my first maven plugin, and I would like to
    use TestNG for my integration testing. I have looked at
    maven-plugin-testing-harness

    but it depends on JUnit 3.8.1 and provides an AbstractMojoTestCase
    class which must be extended. I just want to use TestNG for test
    groups and data-driven testing... I don't want to go back in time
    to the "old" days of JUnit 3!

    Does anyone have advice or experience using TestNG as the
    framework for maven plugin tests?

    -Dave

    --
    You received this message because you are subscribed to the Google
    Groups "testng-users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to testng-users...@googlegroups.com

    To post to this group, send email to testng...@googlegroups.com
    <mailto:testng...@googlegroups.com>.

Dave Joyce

unread,
May 24, 2013, 2:24:17 PM5/24/13
to testng...@googlegroups.com
Mark, Cédric:

Thanks for the advice. In looking at the maven-invoker-plugin project site and browsing the clojure-maven-plugin source, I see that this is pretty involved. However, I guess integration tests are non-trivial by their very nature.

In the short term, I'll try maven-invoker-plugin. In the long term, I think I need to get involved in the maven-plugin-testing-harness project and add TestNG support to it. Use of JUnit vs TestNG for plugin testing should be transparent, just as it is for unit testing via maven-surefire-plugin.

-Dave
Reply all
Reply to author
Forward
0 new messages