★ Update to MGunit
posted Tue 3 Jul 2007 by Michael Galloy under IDLA new version of MGunit is available. (You will also need MG_SRC_ROOT
.) I’m just labeling the version with the Subversion revision number, so this is revision 12. The main changes are a new test runner that produces HTML output and some name changes. See the release notes in the full post for details of the changes.
If you use Subversion, you can get updates for mgunit via the command:
svn co http://svn.idldev.com/mgunit/trunk/mgunit
I’m going to releasing more code via Subversion in the future.
UPDATE 4/17/2017: Get updates here now.
Release notes
This is the list of changes from the last release until now (revision 12):
- Renamed class names to use
ut
code like inMGutTestCast
orMGutTestSuite
to be more consistent with style guidelines. - Added an HTML output test runner; added HTML keyword to
MGUNIT
. - Changed
OUTLOG
keyword toMGUNIT
toFILENAME
. - Added better error handling for invalid test cases.
- Added an
ALL
keyword inMGutTestCase::add
. As long the unit tests’ class names end in_ut
and test suites’ class names end in_uts
, only one test suite needs to be created at the root level—all other suites will be created automatically.
See Fixtures: update to unit testing framework and Unit testing framework for more information about the testing framework.
June 2nd, 2008 at 1:14 pm
A feature request for MGUNIT’s Makefile: the command ‘idl’ only works if it’s in the shell’s PATH; it doesn’t work if IDL is referenced through an alias. Is there a way to access aliases from within a Makefile?
June 2nd, 2008 at 5:58 pm
I think the Makefile would have to run the appropriate initialization file to pick up aliases (but there are a bunch of different ones: .bash_profile, .profile, .bashrc, .cshrc, etc.).
Probably a better way would be an IDL=idl variable at the beginning of the file that could be set to the location of your IDL installation.
June 3rd, 2008 at 11:22 am
The MGunit and IDLdoc Makefiles now have an IDL variable that can be set to the location of the IDL binary.