Changeset 114
- Timestamp:
- 02/18/11 18:31:57 (15 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 modified
-
Makefile (modified) (5 diffs)
-
mgunit_build_docs.pro (modified) (1 diff)
-
mgunit_build_userdocs.pro (modified) (1 diff)
-
overview.txt (modified) (1 diff)
-
RELEASE (modified) (1 diff)
-
src/mgunit.pro (modified) (2 diffs)
-
src/mgunit_version.pro (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r107 r114 1 VERSION=1.2 dev1 VERSION=1.2alpha 2 2 REVISION=r`svn info | sed -n 's/Revision: \(.*\)/\1/p'` 3 3 RELEASE="$(VERSION)-$(REVISION)" 4 4 IDL=idl 5 5 6 .PHONY: all doc userdoc webdoc clean dist srcdist 6 .PHONY: all doc userdoc webdoc clean dist srcdist version 7 7 8 8 all: … … 23 23 cd src; make clean 24 24 25 version: 26 sed "s/version = '.*'/version = '$(VERSION)'/" < src/mgunit_version.pro | sed "s/revision = '.*'/revision = '$(REVISION)'/" > mgunit_version.pro 27 mv mgunit_version.pro src/ 28 25 29 # need to: blow away old dist, blow away api-docs, generate api-docs 26 30 dist: 27 31 rm -rf mgunit-$(RELEASE) 28 rm -rf api- docs/32 rm -rf api-userdocs/ 29 33 30 $(IDL) -e mgunit_build_docs 31 34 make version 35 36 $(IDL) -e mgunit_build_userdocs 37 32 38 $(IDL) -IDL_STARTUP "" mgunit_build 33 39 … … 35 41 36 42 mv mgunit.sav mgunit-$(RELEASE)/ 43 44 cd docs; make 37 45 svn export docs mgunit-$(RELEASE)/docs/ 38 cp -r api-docs mgunit-$(RELEASE)/ 46 cp docs/using-mgunit.pdf mgunit-$(RELEASE)/docs/ 47 cp docs/using-mgunit.html mgunit-$(RELEASE)/docs/ 48 rm mgunit-$(RELEASE)/docs/Makefile 49 50 cp -r api-userdocs mgunit-$(RELEASE)/ 39 51 cp src/error_is_fail.pro mgunit-$(RELEASE)/ 40 52 cp src/error_is_pass.pro mgunit-$(RELEASE)/ … … 43 55 cp COPYING mgunit-$(RELEASE)/ 44 56 cp RELEASE mgunit-$(RELEASE)/ 45 57 46 58 zip -r mgunit-$(RELEASE).zip mgunit-$(RELEASE)/* 47 59 rm -rf mgunit-$(RELEASE) … … 68 80 cp COPYING mgunit-src-$(RELEASE)/ 69 81 cp RELEASE mgunit-src-$(RELEASE)/ 70 82 71 83 zip -r mgunit-src-$(RELEASE).zip mgunit-src-$(RELEASE)/* 72 84 rm -rf mgunit-src-$(RELEASE) 73 -
trunk/mgunit_build_docs.pro
r110 r114 13 13 overview='overview.txt', $ 14 14 /nosource, $ 15 title='MGunit documentation', subtitle='Unit testing for IDL', $ 15 title=string(mgunit_version(), format='(%"mgunit %s API documentation")'), $ 16 subtitle='Unit testing framework for IDL', $ 16 17 /embed, format_style='rst', markup_style='rst' 17 18 end -
trunk/mgunit_build_userdocs.pro
r110 r114 13 13 overview='overview.txt', $ 14 14 /nosource, $ 15 title='MGunit documentation', subtitle='Unit testing for IDL', $ 15 title=string(mgunit_version(), format='(%"mgunit %s API documentation")'), $ 16 subtitle='Unit testing framework for IDL', $ 16 17 /embed, /user, format_style='rst', markup_style='rst' 17 18 end -
trunk/overview.txt
r113 r114 1 1 `mgunit` is a unit testing framework modeled on other `xUnit testing frameworks <http://en.wikipedia.org/wiki/XUnit>`. The goal is to allow easy creation and reporting of results of tests, while still allowing for many different testing situations. Simple naming conventions replace formal creation of hierarchies and specification of tests. This allows test suites to be created with a minimum of code beyond the actual code of the tests themselves. 2 3 The basic structure of `mgunit` is that tests are created by subclassing `MGutTestCase`, tests can be grouped together into suites for convenience by subclassing `MGutTestSuite`, and tests are run my calling `mgunit`. The `assert` routine is useful inside a test for making an assertion during the test. The `error_is_pass.pro` batch file is useful to include in a test when the test is supposed to crash. 2 4 3 5 See "Using mgunit" in the `docs` directory for more details about using `mgunit`. 4 6 5 The basic structure of `mgunit` is that tests are created by subclassing `MGutTestCase`, tests can be grouped together into suites for convenience by subclassing `MGutTestSuite`, and tests are run my calling `mgunit`. The `assert` routine is useful inside a test for making an assertion during the test. The `error_is_pass.pro` batch file is useful to include in a test when the test is supposed to crash.6 7 7 8 :Author: -
trunk/RELEASE
r106 r114 7 7 8 8 * Added FAILURES_ONLY keyword to display only failured tests. 9 10 * Simplified and improved user-level API documentation. 11 12 * Added `VERSION` keyword to report mgunit version. 9 13 10 14 -
trunk/src/mgunit.pro
r112 r114 32 32 ; IDL> mgunit, ['test1_ut', 'test2_ut'] 33 33 ; 34 ; Or one could be run individually like::34 ; Or one test could be run individually like:: 35 35 ; 36 36 ; IDL> mgunit, 'test1_ut' … … 64 64 ; failures_only : in, optional, type=boolean 65 65 ; report only failed tests 66 ; version : in, optional, type=boolean 67 ; set to report version and exit 66 68 ;- 67 69 pro mgunit, tests, filename=filename, html=html, xml=xml, gui=gui, junit=junit, $ 68 70 color=color, $ 69 71 npass=npass, nfail=nfail, nskip=nskip, ntests=ntests, $ 70 failures_only=failuresOnly 72 failures_only=failuresOnly, version=version 71 73 compile_opt strictarr 74 75 if (keyword_set(version)) then begin 76 print, string(mgunit_version(/full), format='(%"mgunit %s")') 77 return 78 endif 72 79 73 80 case 1 of
