ST 4U 91: Focusing SUnit on Specific Tests
Today's Smalltalk 4 You looks at loading and using SUnit in VA Smalltalk. Last time we looked at the SUnit browser in VA Smalltalk, but it showed every test loaded in the image. Today, we look at how simple it is to get a more focused view. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
You can also watch it on YouTube:
Today we'll go back to SUnit in VA Smalltalk, and see how easy it is to concentrate on just the tests that are of interest to you, instead of all tests across the system. We'll start in the Application Browser, looking at the TestCase subclass we created last time:
Right click on the class, and in the context menu, select Test:
You have the same tool you saw last time, but instead of all tests that are loaded (and that could be quite a few, if you've loaded something like Seaside) - you'll see just the tests in this selection:
Now we can run just the tests we care about (one in the image below), and not be distracted by whatever else happens to be loaded in our image. On a large project, with multiple developers creating features and tests, that could be a big distraction:
Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.
Technorati Tags: smalltalk, tdd, va smalltalk, sunit
Enclosures:
[st4u91-iPhone.m4v ( Size: 2586924 )]