AppFuseEclipse |
|
Your trail: |
Difference between
version 60
and
version 59:
At line 1 changed 1 line. |
[AppFuse], by default, is configured to be an [Eclipse|http://www.eclipse.org] project. When you run __ant new -Dapp.name=''yourApp'' -Ddb.name=''yourDatabase''__ you will get the .project and .classpath files to start your project with. However, you will need to make a few easy setting changes in Eclipse (particularly to run [Ant|http://jakarta.apache.org/ant]). This tutorial shows you how to setup Eclipse to develop your AppFuse project. |
[AppFuse], by default, is configured to be an [Eclipse|http://www.eclipse.org] project. When you run __ant new__ to create a new project, you will get the .project and .classpath files to start your project with. However, you will need to make a few easy setting changes in Eclipse (particularly to run [Ant|http://jakarta.apache.org/ant]). This tutorial shows you how to setup Eclipse to develop your AppFuse project. |
At line 60 changed 1 line. |
It's also possible to run your JUnit tests in Eclipse. But before running them, you need to run the "test-all" target. This will set the classpath and files for testing. After "test-all" completes, refresh the project. |
It's also possible to run your JUnit tests in Eclipse. But before running them, you need to run the "war" target. After this target completes, refresh your project. |
At line 77 changed 1 line. |
If the instructions above don't work for running JUnit tests in Eclipse, I suggest just using the command line - i.e. ant test-dao -Dtestcase=UserDAO. I've spent countless hours trying to get AppFuse tests to run in Eclipse and whenever I figure out a formula to make things work - it quits working the next time. Running tests from the command line ''always'' works. ;-) |
If the instructions above don't work for running JUnit tests in Eclipse, I suggest just using the command line - i.e. ant test-dao -Dtestcase=UserDAO. Running tests from the command line ''always'' works. ;-) |
At line 79 removed 6 lines. |
Of course, if anyone does manage to get this stuff working in a consistent manner, please let me know so I can document it. |
|
__How do I run the "web" tests (for Controllers/Actions) in Eclipse?__ |
|
Add build/appfuse as a project source and run "ant copy-resources". Then you should be able to run individual tests. |
|
Back to AppFuseEclipse,
or to the Page History.
|