Hello Everybody.

I've just started to use GWTTestCase and Sute to implement my TDD
proyect. I'm actually able to develop and execute normal JUnit tests
in my server side (Domain Data Model) but now I want to implement
GWTTestCase to develop my presenters on client side.

I've followed some tutorials, starting by these two:

http://code.google.com/intl/es-ES/webtoolkit/doc/1.6/DevGuideTesting.html
http://code.google.com/intl/es-ES/webtoolkit/articles/testing_methodologies_using_gwt.html

Mi issue is the next: I have my GWTTestCase class and when I try to
execute it, I just get No tests found in
com.xxx.app.client.test.MyTestClass

I don't know what I'm missing, I have the client folder as a source in
the module: <source path='client' />.

I wonder if someone knows how can I run my test.

Thanks.

the Module:

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='app'>
        <!-- Inherit the core Web Toolkit stuff. -->
        <inherits name='com.google.gwt.user.User' />

        <inherits
name='com.google.web.bindery.requestfactory.RequestFactory' />

        <!-- Other module inherits -->
        ...
        <!-- Specify the app entry point class. -->
        <entry-point class='com.xxx.app.client.AppEntryPoint' />

        <!-- Specify the paths for translatable code -->
        <source path='client' />
        <source path='shared' />

</module>

The Test stackTrace:


junit.framework.AssertionFailedError: No tests found in
com.xxx.app.client.test.MyTestClass
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:243)
        at junit.framework.TestSuite.run(TestSuite.java:238)
        at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
83)
        at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
50)
        at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)

My Test Class code:

package com.xxx.app.client.test;

import com.google.gwt.junit.client.GWTTestCase;

public class MyTestClass extends GWTTestCase {

  public void test() {
    assertTrue("I've got this to work", true);
  }

  @Override
  public String getModuleName() {
    return "com.xxx.app.MyAppModule";
  }

}


If you need aditional info, please, comment. Thanks again

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to