配置 Eclipse 自动运行我的 FlexUnit 测试

发布于 2024-07-24 08:53:20 字数 355 浏览 8 评论 0原文

我想在 Eclipse 中设置我的项目,以便每次保存工作时都运行 FlexUnit 测试。

我在这里找到了一个 JUnit 的示例: http://misko.hevery.com/2009/05/07/configure-your-ide-to-run-your-tests-automatically/

你会怎么做? 是否可以在没有 Flash Player 的情况下运行 FlexUnit 测试?

I'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work.

I found an example with JUnit here : http://misko.hevery.com/2009/05/07/configure-your-ide-to-run-your-tests-automatically/

How would you do it? Is it possible to run FlexUnit tests without Flash Player?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

幸福还没到 2024-07-31 08:53:20

是的,您可以使用 FlexUnit4 创建一个与 Misko 描述的设置非常相似的设置。 关键是创建一个 ANT 构建脚本来编译测试运行程序,然后在生成的 SWF 上调用 FlexUnit ANT 任务。

一旦您完成了 ANT 构建脚本设置,您就可以直接跳到步骤 4,如本文所述。

如果您不熟悉 ANT,正确设置 ANT 构建脚本可能会有点棘手。 我发现 FlexUnit4 团队提供的持续集成 (CI) 示例项目非常有参考价值。 截至撰写本文时,可在此处获取:

http:// opensource.adobe.com/svn/opensource/flexunit/branches/4.x/FlexUnit4SampleCIProject/

Yes, you could create a setup much like the one Misko describes using FlexUnit4. The key is creating an ANT build script that compiles your test runner and then invokes the FlexUnit ANT task on the resulting SWF.

Once you have the ANT build script setup you can jump right into step 4, as outlined in the article.

Getting the ANT build script setup correctly can be a little tricky if you're not familiar with ANT. I found the continuous integration (CI) sample project provided by the FlexUnit4 team to be a great reference. As of this writing, it's available here:

http://opensource.adobe.com/svn/opensource/flexunit/branches/4.x/FlexUnit4SampleCIProject/

遇到 2024-07-31 08:53:20

尝试使用 Flex Builder 4 beta,它内置了单元测试集成。

Try using Flex Builder 4 beta, it has unit testing integration built in.

靑春怀旧 2024-07-31 08:53:20

您是否使用 Eclipse 的 FlexUnit 插件
我不知道,但它应该执行 FlexUnit 测试。

如果您想在保存后执行某些操作,可以使用 Eclipse 中的保存操作。 它们被插入到 org.eclipse.jdt.ui.cleanUps 中(根据 邮件列表帖子)。

哦,我最近发现了这个博客条目: FlexUnit + Ant 。 看起来它涵盖了你的问题!

祝你好运!

Are you using the FlexUnit plugin for Eclipse?
I don't know it, but it should execute FlexUnit tests.

If you want to execute something after you saved, you could use the Save Actions in Eclipse. They are inserted in org.eclipse.jdt.ui.cleanUps (according to a mailing list post).

Oh, I recently found this blog entry: FlexUnit + Ant. It seems like it covers your problem!

Good luck with that!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文