I have been beavering away developing an Eclispe plugin for FlexUnit and would like your feedback.
To get this free plugin simply visit: http://www.codesquared.com/eclipse/installinstructions.html
Let me know what you think.
I've tried to install it on Eclipse 3.4.2 but I get the following error:
"Cannot complete the request. See the details.
Cannot find a solution satisfying the following requirements org.eclipse.debug.ui [3.4.0.v20080529-1300]."
Interestly org.eclipse.debug.ui is not a plugin dependency for the FlexUnit plugin. When did you get this error - during installation of the plugin or post installation?
If it was during the installation at which step did this ocurr?
If it was at runtime did this happen when you were setting the preferences for the plugin or when you attempted to run a test?
I have reviewed the installed plugins on my Eclipse version and I do have org.eclipse.debug.ui plugin albeit version 3.4.2. You can check if this plugin exists on your eclipse implementation by doing Help -> About Eclipse SDK and selecting the plugin details button.
Hi, I just install FlexUnit eclipse plugin. I was waiting for this kind of plugin !!!
I'm on Mac OS 10.5.6 with Flex Builder 3 standalone and I get a validation error on preference page...
When I try to set the flash player app path ( /Applications/DEVELOPPEMENT/Adobe Flex Builder 3/Player/mac/10/mac/Flash Player.app) I get a validation error : Value must be an existing file.
Seems that Mac Path are not supported here... But Flash player log directory set to : /Library/Application Support/Macromedia/Flash Player/Logs/ seems to be accepted.
Ready to help for having a MAC compliant version...
Firstly thanks for bringing this to my attention, not having a MAC has stopped me from testing it in that environment so the support you have given me in sorting out the compatibility issues has been fantastic.
For everyone else there is now a new version of the plugin which incorporates the MAC compatibility fixes along with the following new features:
New In Version 1.1.0
Wizard support to automatically generate the test harness
Dynamic creation and execution of tests direct from the actionscript class
I don't see it on the update site, is it already published?
Also, is it possible to have a downloadable version, so I can try putting it into the dropins folder directly, as I still have the error on the eclipse dependency above. My computer is also a Mac with Leopard and Flex Builder is installed as an Eclipse plugin, not the standalone version.
Yes it is already published and can be found by browsing to the update site directly or by pointing the Eclipse update manager at the site which I would recommend.
Can you answer the questions I posed to you before about the error you are getting as it will help me understand the problem better. I know the plugin works just fine on the MAC using FlexBuilder standalone but there could be some differences in the MAC Eclipse product and the Windows version that is causing this.
the Eclipse version that I have is the Mac OS X 3.4.2 Eclipse SDK.
If I add the update site "http://www.codesquared.com/eclipse" in Help -> Software Updates from the Add Site... button I get a new item in the tree with name:
file:/C:/Users/Mark/Documents/Projects/Eclipse/EclipsePlugIn/com.code squared.eclipseplugin.flex.flexunit.updatesite/ - metadata
which contains the Flex Unit Plugin category and inside that the FlexUnit Plugin, but only version 1.0.0.
When I select the checkbox and press the button "Install..." I get a dialog with the FlexUnit plugin selected and the error in the title "cannot complete the request" and in the details textarea "Cannot complete the request. See the details.
Cannot find a solution satisfying the following requirements org.eclipse.debug.ui [3.4.0.v20080529-1300]." so I cannot proceed with the "Next" or "FInish" button which are disabled.
If I go to Plugin Details the org.eclipse.debug.ui item is present with version 3.4.2.v20090110_r342.
Hope this helps in spotting the problem, I don't have any issues installing other plugins.
Have just read your blog on FlexUnit 4 and I'm excited about the alignment with the JUnit 4 approach.
I would be more than happy to work with you on FlexUnit 4 support. What areas specifically are you interested in me getting invoved?
Hi, is the source for this available somewhere? This would be a perfect addition to my development evironment, but it doesn't seem to run with a flex-mojos created project which uses src/main/flex as the main source folder instead of just src.
The Plugin looks great, but I too am using the Flexmojos project and so my main flex source directory is not in the typical Flex source location. Can the location of the flex src directory be added as a preference?
Sorry for the delayed response I have been busy with the daytime job.
The plugin identifies the source directory by looking in the .actionscriptproperties file. How is the Flexmojos dev environment managing this?
Your response to my question was pretty quick actually and I am grateful. Flexmojos makes you put non test code in src/main and test code in src/test. The problem may be that in eclipse we use src/main as the source folder path and then add src/test as a separate library path entry.
Does the plugin only reference the sourceFolderPath in the compiler tag of .actionscriptproperties or does it look at all the compilerSourcePathEntry tags inside the compilerSourcePath tag.
I have attached a copy of our .actionScriptProperties so you can see how we have it mapped out.
It looks like the plugin can't deal with multiple source paths.
However you can generate harness in some other project with a single source path and then copy it to you test source path.
But for me, unfortunately, version 1.1.0 of this plugin does not support FlexUnit 4 test annotations, since EclipsePluginTestRunner.run() expects input paramater of type flexunit.framework.Test.
So I decided to use standard FlexUnit4 UI test runner for Flex Builder-based debugging. And of course I use flexmojos runner in Maven build process.
I am trying to use the update site for the FlexUnit plugin, however when it tries to get the repository details, it throws an error message saying that there is no repository at this location.
Has the repository being removed?
Thanks & Regards,
I am using Eclipse 3.4.2 . The plugin doesn't seem to detect any output written to flashlog.txt. I have a very small test that only calls assertTrue(false). I see the following in the log file:
F,com.codesquared.example.test::AccoutTest,testNew,expected:<true> but was:<false>,<<
Nothing shows up in the FlexUnit output tab. Also, I have to exit the flash player manually, not sure if this is expected. Once I run this once, eclipse (javaw.exe) has a hold of the flashlog.txt file and subsequent tests will not write to it. Using Process Explorer (I'm using Windows XP), I can force it to close the handle to the log file and the next flash player instance will use it. (but eclipse will once again hold on to this).
Anyone have any ideas?
Europe, Middle East and Africa