Talk:Nasal Unit Testing Framework

From FlightGear wiki
Jump to navigation Jump to search

Discussion: Canvas & Nasal

As previously discussed on the forums, we could greatly benefit from having this in place, i.e. some of the more frequent bugs related to MapStructure were:

  • more groups than drawables
  • toggling range resulted in more models than drawn groups

...

Unit tests could involve running searchCmd and checking that size(me.model) equals the number of drawn and visible elements in the corresponding canvas group.