Wednesday, September 28, 2011

Test folder included in GWT compile??

I recently added a GWTTestCase class to one of my project for learning/
experimental purposes. Today when I went to compile the project for
deployment, I was given an error indicating that the test class source
code is not available.

The test class is in a separate folder from my actual projects source
code as follows:
src/com.blah.shared.blah.TestedClass.java
test/com.blah.shared.blah.TestedClassTest.java

The module is defined in src/com.blah.

The src and test folders are both listed a source folders, they have
to be or I wouldn't be able to run the tests.
src is compiled to the web apps classes folder
test is compiled into itself

There is no module defined in the test folder, only in the src folder.

The following thread is similar but he was not using GPE:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e40ccd2604e2f0b1/a1249f183e1795c9

I believe placing test code in a separate test folder is good
practice?? The only thing I can think to do is add some kind of
exclude pattern to my GWT module. This isn't ideal, though it should
work. Thoughts?

Thanks,
Pat

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

No comments:

Post a Comment