Integration with IDEs or FlexUnit
Have you given any thought to integration with IDEs like Flash Builder or IntelliJ IDEA? Is it possible, at the moment?
Failing that, do you think it'd be possible to extend Jasmine-Flex to build FlexUnit tests under the hood? That way it we could leverage the work they've already done with FlexUnit.
Wmadden: Good question. I haven't looked at doing either although it seems like both should be possible. For the second option, are you suggesting that Jasmine tests generate wrappers that call the Jasmine blocks? Or are you suggesting a translation to FlexUnit tests? I think I'd rather look into IDE integration... so that you can take advantage of the hierarchical nature of the tests.
Have you thought much about this? What do you think it would take? What would be most useful?
Hey Brian, thanks for getting back to me.
What I'd like to achieve is a level of integration with development and command-line tools equal to the existing integration with FlexUnit. Specifically, as a developer I want:
- to run tests with a single keystroke (from IntelliJ, personally)
- to be able to run a single test of interest
- to be able to run a single set of tests (context or file)
And for continuous integration I want to be able to run the tests for the project I'm building, and parse the results.
The major Flex IDEs (FB, IntelliJ, FDT) can already do all of this with FlexUnit. Maven - and I think some other build tools - can run FlexUnit tests from the command line, and Bamboo (the Atlassian CI server) can parse XUnit test results. If we could extend Jasmine to be compatible with the FlexUnit runner, we could (presumably) achieve the same level of integration without the hassle of integrating with all these things ourselves.
How we do that I'm not sure. I was thinking the quickest way to do this would be to construct classes at run-time corresponding to each context, with methods for each "it" block - or something similar - and hand them to FlexUnit to parse and run.
Unfortunately I don't have enough familiarity with FlexUnit to say for sure what's possible.