redding / assert

Assertion style testing framework.
https://github.com/redding/assert
MIT License
10 stars 1 forks source link

accumulate: store/accumulate test/result counts on the suite #267

Closed kellyredding closed 8 years ago

kellyredding commented 8 years ago

This is part of switching to accumulating all test run data and not storing unnecessary data like every test obj that was run and every result obj that those tests produced.

This replaces the super-generic count method (that would count any tests data) with data-specific count methods. These count methods pull from the counts accumulated on the suite rather than actually counting up objects in memory. Counts are accumulated by implementing callbacks and incrementing counters appropriately. I chose to use specific increment private methods for incrementing the typed result counts to avoid having to do some conditional or some dynamic ivar get/set.

I also added some more notes for the coming steps like moving presentation data accumulation/handling into the view, etc.

@jcredding ready for review.

jcredding commented 8 years ago

@kellyredding - Looks good :boom: