Where as in the old version you had to copy your tests to the TestUp folder which was hard coded you can now just add the path to where your tests are located in your own project folder.
Builds upon the MiniTest gem which is extendible if needed.
Wraps the MiniTest framework such that if we change the underlying library we can preserve compatibility.
Allows you to set up manifests for the tests so TestUp knows how much coverage you have.
This is also a great tool for developers to report bugs in our API. If you send us a test unit that replicates the bug it makes it much easier for us to fix it - saves the time of going back and forth trying to replicate the exact conditions.
For testing an extension against older versions, TestUp “1” is available as part of the old Developer Tools.
However, old tests used to be subclasses of Test::Unit::TestCase and not yet of TestUp::TestCase. Any suggestions to maintain one set of unit tests that can be run in all versions?
if defined?(Test::Unit::TestCase) && !defined?(TestUp::TestCase)
module Testup
TestCase = Test::Unit::TestCase
end
end
I’ve been wanting to eventually make TestUp2 compatible with older SketchUp version. Provided that there is a compatible MiniTest gem for 1.8 we can use.
Ruby 1.8.6 p287 Standard Library SketchUp Extension RBZ
The loader script in case ya’ll prefer to copy the lib files your selves, or have them somewhere else besides the “Plugins” directory.
(FYI, an example of a SketchupExtension script that doesn’t really load a file.): !!_RubyLib.rb (2.9 KB)