Failing to run tests with Ant.

30 views
Skip to first unread message

Povilas Balciunas

unread,
May 12, 2014, 2:00:36 AM5/12/14
to gwt-test-u...@googlegroups.com
Hello,

I've created a sample project to run my gwt tests with gwt-test-utils (https://github.com/povilasb/gwt-test-utils-sample). I'm using Ant for builds. This is my dependecy list from ivy.xml:
<iframe src="http://showterm.io/cfbe299b728f8bbb6c29f"  width="640" height="480"></iframe> 

Unfortunately I fail to run tests:
<iframe src="http://showterm.io/5abc39d1b6641e867d0a0" width="640" height="480"></iframe>

Does anyone know what the problem might be?

Thank you,

Povilas

Povilas Balciunas

unread,
May 12, 2014, 2:05:54 AM5/12/14
to gwt-test-u...@googlegroups.com
Oh, sorry, iframes not allowe :)

 Well to be short I'm using 

    gwt 2.6, juni 4.11 and gwt-test-utils 0.47

And i receive such error when running tests:

[------------------------------------------------------------------------------------------------------]

html-test-utils-config:

test:
    [junit] Testsuite: com.example.gwtTestUtils.client.PersonTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.006 sec
    [junit] 
    [junit] ------------- Standard Error -----------------
    [junit] SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
    [junit] SLF4J: Defaulting to no-operation (NOP) logger implementation
    [junit] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: initializationError(com.example.gwtTestUtils.client.PersonTest):  Caused an ERROR
    [junit] Error while scanning package 'com.googlecode.gwt.test.internal.patchers'
    [junit] com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error while scanning package 'com.googlecode.gwt.test.internal.patchers'
    [junit]     at com.googlecode.gwt.test.internal.ClassesScanner.scanPackages(ClassesScanner.java:68)
    [junit]     at com.googlecode.gwt.test.internal.ConfigurationLoader.visitPatchClasses(ConfigurationLoader.java:291)
    [junit]     at com.googlecode.gwt.test.internal.ConfigurationLoader.<init>(ConfigurationLoader.java:65)
    [junit]     at com.googlecode.gwt.test.internal.GwtFactory.<init>(GwtFactory.java:91)
    [junit]     at com.googlecode.gwt.test.internal.GwtFactory.initializeIfNeeded(GwtFactory.java:46)
    [junit]     at com.googlecode.gwt.test.internal.junit.AbstractGwtRunner.<init>(AbstractGwtRunner.java:30)
    [junit]     at com.googlecode.gwt.test.GwtRunner.<init>(GwtRunner.java:19)
    [junit]     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    [junit]     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    [junit] Caused by: com.googlecode.gwt.test.exceptions.GwtTestPatchException: Cannot find class in the classpath : 'com.googlecode.gwt.test.internal.patchers.AbstractHasDataPatcher'
    [junit]     at com.googlecode.gwt.test.internal.GwtClassPool.getClass(GwtClassPool.java:27)
    [junit]     at com.googlecode.gwt.test.internal.ClassesScanner.visitClass(ClassesScanner.java:107)
    [junit]     at com.googlecode.gwt.test.internal.ClassesScanner.scanClassesFromJarFile(ClassesScanner.java:99)
    [junit]     at com.googlecode.gwt.test.internal.ClassesScanner.scanPackages(ClassesScanner.java:62)
    [junit] 
    [junit] 
    [junit] Test com.example.gwtTestUtils.client.PersonTest FAILED

BUILD SUCCESSFUL
Total time: 1 second

[------------------------------------------------------------------------------------------------------]

Povilas Balciunas

unread,
May 12, 2014, 2:43:08 AM5/12/14
to gwt-test-u...@googlegroups.com
It seems like someone already had this issue before: https://code.google.com/p/gwt-test-utils/issues/detail?id=168. But i cannot see that they found the solution.

Reply all
Reply to author
Forward
0 new messages