- Timestamp:
- 10/19/10 14:52:12 (19 months ago)
- Location:
- trunk/src
- Files:
-
- 10 modified
-
assert.pro (modified) (1 diff)
-
mgunit_wrapper.pro (modified) (1 diff)
-
mgutclirunner__define.pro (modified) (4 diffs)
-
mgutcompoundrunner__define.pro (modified) (2 diffs)
-
mgutguirunner__define.pro (modified) (2 diffs)
-
mguthtmlrunner__define.pro (modified) (2 diffs)
-
mgutjunitrunner__define.pro (modified) (2 diffs)
-
mguttestcase__define.pro (modified) (5 diffs)
-
mguttestsuite__define.pro (modified) (1 diff)
-
mgutxmlrunner__define.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/assert.pro
r90 r104 2 2 3 3 ;+ 4 ; Raises an error if the given condition is not met. Uses logical_predicate4 ; Raises an error if the given condition is not met. Uses `logical_predicate` 5 5 ; to determine truth of condition: so zero or null values are false, anything 6 6 ; else is true. Be careful of conditions like:: 7 7 ; 8 8 ; assert, not file_test(filename) 9 ; 10 ; which use bitwise operators (the above is always false). 9 11 ; 10 12 ; :Params: -
trunk/src/mgunit_wrapper.pro
r82 r104 2 2 3 3 ;+ 4 ; Command line wrapper for mgunit. This routine is made to be called from the5 ; mgunitshell script.4 ; Command line wrapper for `mgunit`. This routine is made to be called from 5 ; the `mgunit` shell script. 6 6 ;- 7 7 pro mgunit_wrapper -
trunk/src/mgutclirunner__define.pro
r88 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The MGutCliRunnerdisplays the results in the output log or in a5 ; runner. The `MGutCliRunner` displays the results in the output log or in a 6 6 ; log file. 7 7 ;- … … 184 184 ; :Keywords: 185 185 ; _extra : in, optional, type=keywords 186 ; keywords to MG_ANSICODE i.e. RED or GREEN186 ; keywords to `MG_ANSICODE`, i.e., `RED` or `GREEN` 187 187 ;- 188 188 pro mgutclirunner::_print, lun, text, _extra=e … … 239 239 ; filename : in, optional, type=string 240 240 ; if present, output is sent to that file, otherwise output is sent to 241 ; stdout241 ; `stdout` 242 242 ; color : in, optional, type=boolean 243 243 ; set to print color output … … 281 281 ; space 282 282 ; byte value of the space character 283 ; isTty 284 ; whether the `mgunit` believes it is running in a TTY terminal or not 283 285 ;- 284 286 pro mgutclirunner__define -
trunk/src/mgutcompoundrunner__define.pro
r88 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The MGutHTMLRunner displays the results in the output HTML file. 5 ; runner. The `MGutCompoundRunner` allows results to be sent to multiple 6 ; test runners, e.g., to the display and to a file. 6 7 ;- 7 8 … … 178 179 ; filename : in, optional, type=string 179 180 ; if present, output is sent that file, otherwise output is sent to 180 ; stdout181 ; `stdout` 181 182 ;- 182 183 function mgutcompoundrunner::init, filename=filename, _extra=e -
trunk/src/mgutguirunner__define.pro
r88 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The mgutguirunner displays the results in the output log or in a 6 ; log file. 5 ; runner. The `MGutGUIRunner` displays the results in an interactive GUI. 7 6 ;- 8 7 … … 324 323 ; tlb 325 324 ; top-level base of GUI 325 ; toolbar 326 ; base widget containing toolbar items 326 327 ; text 328 ; text widget displaying results 327 329 ; continued 330 ; cleared 331 ; indent 332 ; space 328 333 ;- 329 334 pro mgutguirunner__define -
trunk/src/mguthtmlrunner__define.pro
r88 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The MGutHTMLRunnerdisplays the results in the output HTML file.5 ; runner. The `MGutHTMLRunner` displays the results in the output HTML file. 6 6 ;- 7 7 … … 210 210 ; filename : in, optional, type=string 211 211 ; if present, output is sent that file, otherwise output is sent to 212 ; stdout212 ; `stdout` 213 213 ; color : in, optional, type=boolean 214 214 ; unused for MGutHtmlRunner -
trunk/src/mgutjunitrunner__define.pro
r88 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The mgutjunitrunner displays the results in the output HTML file. 5 ; runner. The `MGutJUnitRunner` displays the results in the output XML file. 6 ; For example, a test that normally runs like:: 7 ; 8 ; IDL> mgunit, 'gpuradon_ut' 9 ; "All tests" test suite starting (1 test suite/case, 2 tests) 10 ; "gpuradon_ut" test case starting (2 tests) 11 ; test_basic_backprojection: passed (0.158287 seconds) 12 ; test_basic_forward: failed "incorrect result" (0.005014 seconds) 13 ; Results: 1 / 2 tests passed, 0 skipped 14 ; Results: 1 / 2 tests passed, 0 skipped 15 ; 16 ; With `MGutJUnitRunner`, it would produce output like:: 17 ; 18 ; IDL> mgunit, 'gpuradon_ut', /junit 19 ; <testsuites name="All tests"> 20 ; <testsuite name="gpuradon_ut"> 21 ; <testcase name="test_basic_backprojection"> 22 ; </testcase> 23 ; <testcase name="test_basic_forward"> 24 ; <failure>incorrect result</failure> 25 ; </testcase> 26 ; </testsuite> 27 ; </testsuites> 6 28 ;- 7 29 … … 202 224 ; filename : in, optional, type=string 203 225 ; if present, output is sent that file, otherwise output is sent to 204 ; stdout226 ; `stdout` 205 227 ; color : in, optional, type=boolean 206 228 ; unused for mgutjunitrunner -
trunk/src/mguttestcase__define.pro
r90 r104 2 2 3 3 ;+ 4 ; Subclass MGtestCase to actually write tests. Any function method whose name5 ; starts with "test" will be considered a test. Tests are executed and results6 ; are reported to the test runner object.4 ; Subclass `MGutTestCase` to actually write tests. Any function method whose 5 ; name starts with "test" will be considered a test. Tests are executed and 6 ; results are reported to the test runner object. 7 7 ;- 8 8 … … 36 36 37 37 ;+ 38 ; This is a safe place to actually run a single test. Any errors that occur are39 ; a ssumed to be from the test and recorded as a failure for it.38 ; This is a safe place to actually run a single test. Any errors that occur 39 ; are assumed to be from the test and recorded as a failure for it. 40 40 ; 41 41 ; :Returns: … … 138 138 139 139 ;+ 140 ; Run the tests for this class (i.e. methods with names that start with "test"). 140 ; Run the tests for this class (i.e. methods with names that start with 141 ; "test"). 141 142 ;- 142 143 pro mguttestcase::run … … 304 305 ; :Keywords: 305 306 ; test_runner : in, required, type=object 306 ; subclass of MGutTestRunner307 ; subclass of `MGutTestRunner` 307 308 ;- 308 309 function mguttestcase::init, test_runner=testRunner … … 325 326 ; :Fields: 326 327 ; testRunner 327 ; subclass of MGtestRunner328 ; subclass of `MGtestRunner` 328 329 ; testnames 329 330 ; pointer to string array of method names that start with "test" -
trunk/src/mguttestsuite__define.pro
r88 r104 2 2 3 3 ;+ 4 ; Test suites are containers for test cases. Either subclass MGutTestSuite and5 ; a dd test suites/test cases in its init method or create a MGutTestSuite and6 ; use the addmethod to add test suites/cases.4 ; Test suites are containers for test cases. Either subclass `MGutTestSuite` 5 ; and add test suites/test cases in its `init` method or create an 6 ; `MGutTestSuite` and use the `add` method to add test suites/cases. 7 7 ;- 8 8 -
trunk/src/mgutxmlrunner__define.pro
r89 r104 3 3 ;+ 4 4 ; Results for tests, test cases, and test suites are reported to the test 5 ; runner. The mgutxmlrunner displays the results in the output HTML file.5 ; runner. The `MGutXMLRunner` displays the results in the output XML file. 6 6 ;- 7 7 … … 164 164 ; :Keywords: 165 165 ; _extra : in, optional, type=keywords 166 ; keywords to MG_ANSICODE i.e. RED or GREEN166 ; keywords to `MG_ANSICODE`, i.e., `RED` or `GREEN` 167 167 ;- 168 168 pro mgutxmlrunner::_print, lun, text, level=level, _extra=e … … 194 194 ; filename : in, optional, type=string 195 195 ; if present, output is sent that file, otherwise output is sent to 196 ; stdout196 ; `stdout` 197 197 ; color : in, optional, type=boolean 198 ; unused for mgutxmlrunner198 ; unused for `MGutXMLRunner` 199 199 ; _extra : in, optional, type=keywords 200 ; keywords to MGutTestRunner::init200 ; keywords to `MGutTestRunner::init` 201 201 ;- 202 202 function mgutxmlrunner::init, filename=filename, color=color, _extra=e
