By choosing the Scala source file containing ScalaTest suite(s) from Project Explorer/Navigator.Īfter you choose the target Scala source file, just right click and choose:-Īll ScalaTest suites in the selected Scala source file will be run.Ī Run Configuration with the file name will be created automatically.By choosing an opened Scala source file containing ScalaTest suite(s) in the editor.To run all ScalaTest suites in a selected file, you can select the file using 2 different ways: To run a selected scope, click on the target scope element in the editor, right click and choose:-Ī Run Configuration with the scope name will be created automatically. To run a selected test, click on the target test element in the editor, right click and choose:-Ī Run Configuration with the test name will be created automatically. By choosing the suite class from Project Explorer/Navigator/Outline view.Īfter you choose the target suite element, just right click and choose:-Ī Run Configuration with the suite name will be created automatically.By choosing the suite source in an opened Scala source file within the editor.To run a selected suite, you can select the suite using 2 different ways:. When using ScalaTest 1.x, the GUI Runner provided by ScalaTest will be used instead of the built-in test result view. Running of selected specific test or scope.Test result view built in the eclipse workspace.Using ScalaTest 2.0 enables the following: You can use any ScalaTest 1.x release or the latest 3.2.15 (recommended). To use ScalaTest in your Scala project, you must download ScalaTest and include it in build path of your project. With the release notes for ScalaTest 3.2.15 here: Information on the features of the integration (and some screenshotsĪ video demo of the plugin that I gave back at ScalaDays is here: IDE 3.0.x, tick 'ScalaTest for Scala IDE' as shown in the figure below: You can install the plugin together with Scala IDE using latest update sites listed at. Screenshot of ScalaTest Eclipse Plugin with ScalaTest 3.2.15 You can plug it into the latest stable release of the Scala IDE for Eclipse (version 3.0.x).įor a nightly build, you'll need to build it by hand by following the steps given in The most seamless IDE integration if you use ScalaTest 3.2.15. You can use the plugin with any release of ScalaTest, but you'll enjoy Properties classes, Specs2 Specifications, or custom styles. Support for non-ScalaTest-native styles, such as a ScalaCheck Styles of testing, the plugin can be extended to grant full IDE And, because ScalaTest is a platform that can support different.So only the offending line of code is shown. You can unfold the top of that stack that is automatically folded.You can hop from results to test, scope, class, or line of failed code.If your BDD-style specification text is nested in the source, it will The results pane mirrors the structure of the specification (i.e.,.Or run tests in a selected class, file, or package. In reported results, rerun all tests or just previously failed tests, You can run just the tests you select in code, run tests you select.You can right click on any test or collection of tests and run them.Not only does this plugin give Scala programmers the level of test-framework/IDE integration that Java programmers have enjoyed with For Eclipse users, ScalaTest offers a powerful plugin that provides seamless support for testing in the Scala IDE for Eclipse.
0 Comments
Leave a Reply. |