Dear group,

I would like to know how to make CloudCover (http://code.google.com/p/
cloudcover/) work.

At cloudcover.html, even I clicked on the "Start New Run" button, the
(default) test won't be executed.
The cloudcover.html showed like:
Run 1001: NOT_STARTED, Completed 0/0 (0%)
Passed: 0 Too Slow: 0 Failed: 0 In Progress: 0 Not Started: 0
com.google.appengine.testing.cloudcover.harness.junit3.JUnit3TestHarness
(0)



I found the following logs in the GAE/J logs:
W 06-11 10:45PM 49.387
com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
getTestIds: 1001: Cannot schedule instance of class
com.appspot.waversbeach.server.MemcacheTest for execution because its
String represenation,
testInsert1(com.appspot.waversbeach.server.MemcacheTest), is not an
available class.

W 06-11 10:45PM 49.395
com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
getTestIds: 1001: Cannot schedule instance of class
com.appspot.waversbeach.server.MemcacheTest for execution because its
String represenation,
testInsert2(com.appspot.waversbeach.server.MemcacheTest), is not an
available class.



MemcacheTest class is a really simple test class just for the trial
purpose with CloudCover:
public class MemcacheTest extends TestCase {
        public MemcacheTest( String name) {
                super( name);
        }

        protected static Cache cache = null;

        @Override
        protected void setUp() throws Exception {
                if ( cache == null) {
                        CacheFactory cacheFactory =
CacheManager.getInstance().getCacheFactory();
                        cache = cacheFactory.createCache( 
Collections.emptyMap());
                }
        }

        @Override
        protected void tearDown() throws Exception {
                cache.clear();
        }

        private void doTest() {
                assertFalse( cache.containsKey( "yar"));
                cache.put( "yar", "foo");
                assertTrue( cache.containsKey( "yar"));
        }

        public void testInsert1() {
                doTest();
        }

        public void testInsert2() {
                doTest();
        }

}


My JUnit3Config class is like:
public class CloudCoverRunnerConfig extends JUnit3Config {

        @Override
        public TestRun newTestRun( String arg0) {
                TestSuite suite = new TestSuite();
                suite.addTest( new MemcacheTest( "testInsert1"));
                suite.addTest( new MemcacheTest( "testInsert2"));
                return new JUnit3TestRun( suite);
        }
}



I'm thinking of giving the CloudCover a shot for Wave robot testing if
it's possible, since I have read in one of Wave docs that there is no
existing mechanism currently to test Wave robot on local machine.

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to