Basic Image Unit Tests
Last updated at 7:32 am UTC on 29 November 2003
We need more tests. The BaseImage Tests package now has around
518 tests (30-Oct-2003). But this is not enough: It will start to get interesting
Many of these tests will be really simple: They simply run methods
and test if the right thing happens.
The interesting thing is that even beginners can be very helpful:
instead of trying the examples from the book in the workspace, why
not write tests instead?
Open the testrunner, "run all" should run all the test
- Add new tests: BrowseUnit will make a new testclass for you if there is none, then simply add methods that begin with "test", use "self assert:" or "self should:" for testing.
See also: Writing good tests is much harder than writing good code!