scalatest - install and use scalatest with eclipse

本文介绍如何在Eclipse环境下利用ScalaTest插件实现无缝的测试支持,包括右键运行测试、筛选测试运行、上下文依赖测试等功能,提供与JUnit相媲美的IDE集成体验,并支持不同风格的测试,如ScalaCheck、Specs2等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The site to install update from Eclips is 

URL: http:///download.scala-ide.org/sdk/e37/scala29/stable/site

and as of how to run the Test within the Scala IDE you can :

For Eclipse users, ScalaTest offers a powerful plugin that provides seamless support for testing in the Scala IDE for Eclipse. Not only does this plugin give Scala programmers the level of test-framework/IDE integration that Java programmers have enjoyed with JUnit, it goes quite a bit farther:

  1. You can right click on any test or collection of tests and run them.
  2. You can run just the tests you select in code, run tests you select in reported results, rerun all tests or just previously failed tests, or run tests in a selected class, file, or package.
  3. The results pane mirrors the structure or the specification (i.e., if your BDD-style specification text is nested in the source, it will appear nested in the results pane).
  4. You can hop from results to test, scope, class, or line of failed code.
  5. You can unfold the top of that stack that is automatically folded so only the offending line of code is shown.
  6. And, because ScalaTest is a platform that can support different styles of testing, the plugin can be extended to grant full IDE support for non-ScalaTest-native styles, such as a ScalaCheck Properties classes, Specs2 Specifications, or custom styles.

Screenshot using ScalaTest 2.0.M5b


or 


Screenshot using ScalaTest 2.0.M5b

Reference: 

Using Scala Test with Eclipse 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值