Actually, Maven2 is bailing on me with a SurefirePlugin exception,
but I'm a Maven2 newbie so I'll worry about that later.
I have the TestNG plugin installed (v 5.2 on Eclipse 3.2) and I can
run "normal" individual test classes just fine. The problem is
that I
need to run the TestFor.xml script and I'm not sure how to get that
working. I see the TestMockApplications class that parses and
executes those scripts but when I try to run TestMockApplications
directly, I get the following for every script (39 of them) in my
TestNG output:
javax.servlet.ServletException: Unable to initialize application
servlet: Service point tapestry.init.MasterInitializer does not
exist.
at org.apache.tapestry.ApplicationServlet.init
(ApplicationServlet.java:206)
at
org.apache.tapestry.junit.mock.TestMockApplications.setupServlet
(TestMockApplications.java:315)
at org.apache.tapestry.junit.mock.TestMockApplications.setup
(TestMockApplications.java:277)
at
org.apache.tapestry.junit.mock.TestMockApplications.execute
(TestMockApplications.java:195)
Thanks for the help,
-Ryan
On Oct 29, 2006, at 6:03 PM, Jesse Kuhnert wrote:
> You can run them from maven if you like, but I usually only do
that
> when I
> want to run "all" tests.
>
> Otherwise I right click on the test class (or method of test
class) in
> question and choose "run as testng test" within eclipse. I don't
> know if
> your editor of choice supports installing a testng unit test
plugin
> but I'd
> highly recommend it if possible.
>
> On 10/29/06, Ryan Holmes <[EMAIL PROTECTED]> wrote:
>>
>> Turns out the Tapestry unit tests are a little more
complicated than
>> I thought. Do I run them from Maven2, is there an Ant target, a
>> TestNG config file, or what? I don't need step-by-step
instructions
>> (hopefully) but a few pointers would be greatly appreciated.
>>
>> Thanks,
>> -Ryan
>>
>>
--------------------------------------------------------------------
-
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]