| Home Page | Recent Changes | Preferences

UsUnit/Discussion

Differences between UsUnit and DUnit and JUnit

Even though UsUnit tries to be similar to JUnit and DUnit it does not always work the same way. This is mostly because of missing features in UnrealScript.

No reflection

UnrealScript doesn't have any (decent) reflection. Because of this TestCases don't work like in DUnit. There's only one entry point per TestCase (e.g. the run() function). In DUnit you can have multiple entry points for the same class, each entry point would have it's own instance. In UsUnit you will simply have to create multiple TestCases and a TestSuite.

No test registration

There is no package initialization code in UnrealScript and no relfection. Therefor it's not possible to find all available tests. There is some code (for UE2.5 only) that can find tests in a package but it's a rather dirty hack. Also it works well when the package is not loaded already.


you can add your comments, feature requests, bug reports, etc. here

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In