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