Scala 构建工具和测试框架可以很好地协同工作吗?

发布于 2024-08-08 01:05:07 字数 311 浏览 3 评论 0 原文

这是我的目标: 1. 在 Eclipse 中运行我的测试,然后看到漂亮的绿色或红色条。 2. 使用构建工具在命令行上运行我的测试。

我倾向于规范和 sbt,但我无法让它们工作。我不想拿起 Maven。我的问题是以下哪一组效果最好?

  1. sbt 和 scalatest
  2. sbt 和规格
  3. ant 和 scalatest
  4. ant 和规格
  5. 还有其他东西吗?

需要考虑的是其他人需要付出多少努力才能使项目在新机器上启动并运行。如果它能与 Hudson 集成,那就加分了。

Here are my goals:
1. Run my tests in Eclipse and see the pretty green or red bar.
2. Run my tests on the command line with a build tool.

I'm leaning towards specs and sbt, but I can't get them to work. I have no desire to pick up Maven. My question is which one of the follow sets works best?

  1. sbt and scalatest
  2. sbt and specs
  3. ant and scalatest
  4. ant and specs
  5. something else?

A consideration is how much effort do other people need to get the project up and running on a new machine. Bonus points if it can integrate with Hudson.

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

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

发布评论

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

评论(2

飞烟轻若梦 2024-08-15 01:05:07

SBT绝对是超越ant的方法。 Ant 不会为您提供与 Maven 项目结构的一致性,并且会迫使您推出自己的依赖项管理。

scalatest 或specs 都可以工作。前者似乎是事实,但我在规格上得到了很好的结果。

我不是 Eclipse 用户,但如果其中一个测试库不受支持,我会感到惊讶。

SBT is definitely the way to go over ant. Ant will not give you congruency with maven project structures and would force you to roll your own dependency management.

Either scalatest or specs will work. The former seems to be a de facto, but I get excellent results with specs.

I am not an Eclipse user, but would be surprised if either test library was not supported.

为你鎻心 2024-08-15 01:05:07

我目前正在将规范项目切换到 sbt 并与 Mark Harrah 一起修复一些问题(查看 sbt 邮件列表 了解详细信息)。

请发布您在规格和 sbt 方面可能遇到的任何问题,我会尽力尽快修复它们。

谢谢,

埃里克。

I'm currently switching the specs project to sbt and fixing a few things with Mark Harrah (check out the sbt mailing list for the details).

Please post any issues you may have with specs and sbt and I'll try to fix them ASAP.

Thanks,

Eric.

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