Adrian: Can I still bother you with new requirements ? jajaja First of all, thank you very much for putting a context menu when you press "right button" over a failing or error test. I really hate when it was run again instead of opening a context menu. Now, I noticed that you open a menu with the options "History" "Store..." and "Show progress". I really love one item more called "browse it" and that opens a System Browser with that class, with that test method selected. What do you think? Cheers Mariano On Mon, Dec 28, 2009 at 12:25 AM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Sun, Dec 27, 2009 at 4:03 AM, Adrian Kuhn <akuhn@iam.unibe.ch> wrote:
Cleanup of SUnit is almost done. There are 179 tests with 75% coverage. Missing are tests for the new resource setup and tests for the new history storage.
Changes
- uses announcements - new class factory DSL - does not print 'unexpected/expected' when empty - factored all assertions into TAssertable - copied Niall's 3-valued setup logic for test resources - new expectation matcher DSL - replaced history dictionary with proper class - keeps history as TestResult in memory - stores history as array in compiled methods - unexpected/expected linked with stored history - migrates #expectedDefects to stored history on the fly - bug fix: 'run failures/errors' updates history - bug fix: coverage is now able to cover itself - added flags for compatibility and deprecation - removed *a lot of* code duplication
I tried to run *all* tests in the latest image with akuhn/SUnit and it seems to run fine. There are 5 failures and 2 errors (both with akuhn/SUnit and pharo/SUnit). The new test suite starts faster. You click and tests start running immediately!
Progress:
numClasses: 13 -> 19 numKLOC: 965 -> 1209 numMethods: 224 -> 291 numStatements: 3086 -> 3903 numTestCases: 51 -> 177 numTestKLOC: 591 -> 1200 numTestStatements: 2175 -> 4663 testCoverage: 61% -> 75%
eventually, a SUnit with more test than production code!
Give it a try and lemme know whether it runs with your tests. All your tests should still run.
This is great :)
I run all my SqueakDBX and GlorpDBX tests and I have one only problem: the expectedFailures are not working any more :(
I put a halt are they are not even being called.
All the rest seem to work (I have even test resources in both projects)
Cheers
Mariano
Gofer it disablePackageCache; squeaksource: 'akuhn'; package: 'SUnit'; package: 'SUnitGUI'; load
cheers, AA
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project