Unit Testing
in
Library and Tool Development
•
2 months ago
Not sure which forum is the best for this question, so I thought I'd throw it here.
I'm trying to run the unit tests in 'app.test.src'. More specifically, trying to run the 'ParserTests.java' JUnit tests. I'm running into a few issues:
- There are quite a few comparison failures coming back in comparing the '.pde' and '.expected' files (well, after the work has been done on them to set up the comparison).
- Several files in the test resources directory that call java libraries are having some trouble finding some objects:
- 'annotations.pde' can't find 'java.io.Serializable'
- 'bug136.pde' can't find 'java.util.Collections'
- 'bug481.pde' can't find 'java.applet.Applet'
- 'bug598.pde' can't find 'java.util.Comparator', 'java.util.List', 'java.util.Map', 'java.util.Collection', 'java.util.Arrays', and 'java.util.HashSet'
I was able to get around the object location errors by simply importing the requisite libraries in the respective '.pde' file in the test resources directory.
Do you think I'm missing something in my set up in running the JUnit tests?
Thanks
1