Opened 18 years ago

Last modified 16 years ago

#4 new task

Create a test suite

Reported by: cinc Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: test suite Cc:

Description

We need a test suite for regression testing when working on the NOM kernel. From the top of my head I can think of the following.

  • Subclassing
  • Several level deep subclassing
  • Method overriding
  • Method oberriding from a class some levels higher than the current one
  • Instance variable testing
  • Mixing classes with and without instance variables when subclassing
  • Testing the methods of NOMObject/NOMClass e.g. is the result of nomQueryInstanceSize() correct
  • Do explicit meta classes work

These testcases are needed for normal classes and meta classes.

Most of this stuff is trivial with a few medium level test cases.

Change History (2)

comment:1 by cinc, 17 years ago

There must be some test case to trigger garbage collection of memory. This can be done by allocating a huge amount of different objects with siginificant memory demands.

comment:2 by cinc, 16 years ago

There is support for unit testing using the class NOMTestCase by now. A few testcases are already implemented.

Note: See TracTickets for help on using tickets.