Project

General

Profile

Bug #9795

Having an abstract UnitTest type causes TestManager to throw an exception

Added by blowfish almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Severity:
Very Low
Assignee:
-
Category:
Plugins/Add-Ons
Target version:
-
Start date:
05/28/2016
% Done:

100%

Version:
Platform:
Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

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 almost 8 years ago

  • Status changed from New to Needs Clarification

#3 Updated by blowfish almost 8 years ago

This can be closed, NathanKell fixed it for 1.1.3

#4 Updated by blowfish almost 8 years ago

  • Status changed from Needs Clarification to Resolved
  • % Done changed from 0 to 100

#5 Updated by blowfish almost 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF