Bug #9795
Having an abstract UnitTest type causes TestManager to throw an exception
Status:
Closed
Severity:
Very Low
Assignee:
-
Category:
Plugins/Add-Ons
Target version:
-
Start date:
05/28/2016
% Done:
100%
Language:
English (US)
Mod Related:
No
Votes:
Description
When writing a large number of tests, it's often useful to have an abstract superclass, particularly for e.g. PartModules where a lot of setup has to be done to get into a testable state. However, it looks like TestManager doesn't check whether UnitTest subclasses are abstract (or generic I think) before adding them, so instead it generates an exception.
Marking as very low because (1) I'm probably one of like three people who actually try to do any sort of unit testing in KSP mods, and (2) I may end up using my own test runner at some point
History
#2 Updated by TriggerAu over 8 years ago
- Status changed from New to Needs Clarification
#3 Updated by blowfish over 8 years ago
This can be closed, NathanKell fixed it for 1.1.3
#4 Updated by blowfish over 8 years ago
- Status changed from Needs Clarification to Resolved
- % Done changed from 0 to 100
#5 Updated by blowfish over 8 years ago
- Status changed from Resolved to Closed