Releases for Unit Testing Framework

Release File: UnitTestingFramework-v1.07.zip
Version: IGOR.6.00.x-1.07
Version Date: Mon, 09/17/2018 - 05:29 am
Version Major: 1
Version Patch Level: 07
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:
  • Convert documentation to sphinx and extend it a lot!
  • Allow selecting test cases and test suites using a regular expression as paramter to RunTest.
  • Define a fixed order of the builtin hooks and the user hooks in which they are called. The begin user hooks are called after the builtin ones, the end user hooks before the builtin ones.
  • Catch aborts in user hooks
  • Lots of code cleanup
  • Output more info in assertion failure
  • Extend the wave checking assertions
  • Handle manual aborts during execution better
  • Add new run mode for automated execution
  • JUNIT support: Make testcase classname unique for successive runs
  • Add support for running the unit testing framework in an Independent Module
  • JUNIT output: Avoid hitting sprintf string limit

Unit Testing Framework IGOR.6.00.x-1.06

Release File: UnitTestingFramework-v1.06.zip
Version: IGOR.6.00.x-1.06
Version Date: Thu, 03/23/2017 - 06:16 pm
Version Major: 1
Version Patch Level: 6
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

  • Fix missing license issue





  •  
  •  
  •  
  •  

 

The unit testing framework is now licensed under 3-Clause BSD. All contributors agreed to this license.

 

 


  • Add option to create TAP compatible log files

  • Add option to create JUNIT compatible log files

  • Fixed edge cases with empty test suites, non-reachable test cases and similiar

  • Overwrite check for output files

  • Add optional arguments keepDataFolder and allowDebug to RunTest

  • Split of TestBegin functions in internal and user part





  •  
  •  
  •  
  •  

 

 

TestBegin, TestEnd, TestSuiteBegin, TestSuiteEnd, TestCaseBegin and TestCaseEnd were split into a internal function that is always executed and a hookable function where a user can extend functionality. The User functions are called directly after the internal functions

 

 


  • More detailed error message on unexpected runtime errors

  • FIX: AbortFlag was not initialized on TEST_BEGIN

  • FIX: Check for Procedure File Names was Case-Sensitive

  • Docu: Use tabwidth of 4 for igor pro example code

  • Nicify examples

  • TEST_BEGIN/TEST_END: Turn off Igor Pro Debgger during test execution Turning off the debugger allows us to support non-interactive runs better as we don't rely on any defaults.





  •  
  •  
  •  
  •  

 

Unit Testing Framework IGOR.6.30.x-1.05

Release File: UnitTestingFramework-v1.05.zip
Version: IGOR.6.30.x-1.05
Version Date: Thu, 11/17/2016 - 02:17 pm
Version Major: 1
Version Patch Level: 5
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

Add wrapper functions for text waves

 


  • One can write like CHECK_EQUAL_TEXTS( somefunction(), {"a","b","c"} ). In old version, CHECK_EQUAL_WAVES( somefunction(), {"a","b","c"} ) makes compile error.





  •  
  •  
  •  
  •  

 

 

Fix and extend the wave type constants

 

 


  • INT16_WAVE is 0x10 and not 0x16. Add also INT64_WAVE, DATAFOLDER_WAVE and WAVE_WAVE.





  •  
  •  
  •  
  •  

 

 

Add *_PROPER_STR

 

 


  • In many cases one wants to check if some string is filled with content. Until now one would need to use *_NON_NULL_STR and *_NON_EMPTY_STR. This looks clumsy and does not make the intent clear.





  •  
  •  
  •  
  •  

 

 

Add new assertions types for strings

 

 


  • Checking that a string is non null or non empty was not possible out of the box. Add assertions *_NON_EMPTY_STR and *_NON_NULL_STR for testing the assertions that a string is not null or not empty. For convenience a null string is not considered non-empty but an empty string non-null.





  •  
  •  
  •  
  •  

 

 

Fix example4-wavechecking.ipf

 

 


  • 'Make/T/D w' does not make a text wave but a double wave.





  •  
  •  
  •  
  •  

 

 

Fix boolean value 'result' in TEST_WAVE_WRAPPER

 

 


  • Fix order of arguments of TEST_WAVE_WRAPPER





  •  
  •  
  •  
  •  

 

 

Thanks to ryotako for a few patches.

 

Unit Testing Framework IGOR.6.30.x-1.04

Release File: UnitTestingFramework-v1.04.zip
Version: IGOR.6.30.x-1.04
Version Date: Mon, 06/06/2016 - 12:36 pm
Version Major: 1
Version Patch Level: 4
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

Enhance error checking for override test hooks
Previously we searched for all correctly named functions with 1 parameter.
This created hard to find bugs if your hook function had a
different signature as it was silently ignored.

Now we don't limit the search according to the number of
parameters but check that each hook function has the correct number of
parameters and correct return type.

CLOSE_VAR: Add forgotten abs

From translating the code from C++ to Igor Pro the modulus of the
values was forgotten.

This results in the fact that all tests with only negative numbers
are considered true. E.g.:

print CLOSE_VAR(-1, -2)
* 1

print CLOSE_VAR(-0.1, -0.2)
* 1

Move history saving to operation queue

This allows runner functions using the operation queue to work properly.

Make history copy handling functions available for all callers

TEST_CASE_BEGIN: Always start in root:

Without the SetDataFolder call the UniqueName invocation is plain wrong.

Fix whitespace issues the in code

Unit Testing Framework IGOR.6.30.x-1.03

Release File: UnitTestingFramework-v1.03.zip
Version: IGOR.6.30.x-1.03
Version Date: Thu, 05/14/2015 - 10:26 am
Version Major: 1
Version Patch Level: 3
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

* Add variants of CLOSE and SMALL check for complex numbers
* Modify example7 to show how uncaught aborts are handled
* Report unhandled aborts in test cases
* Enhance call stack traversing in getInfo

With the old implementation code like

Function testHelper_IGNORE()
FAIL()
end

Function myTestCase()
testHelper_IGNORE()
End

did not report the correct call site.
This was due to the assumption of a fixed call chain order.

Now we traverse the call stack from bottom up and report the first
function not in one of the unit testing procedure files.
* Update documentation to use doxygen 1.8.9.1
* Minor other changes

Unit Testing Framework IGOR.6.30.x-1.02

Release File: UnitTestingFramework-v1.02.zip
Version: IGOR.6.30.x-1.02
Version Date: Thu, 10/31/2013 - 01:02 pm
Version Major: 1
Version Patch Level: 2
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

Fix documentation

Unit Testing Framework IGOR.6.00.x-1.01

Release File: UnitTestingFramework-v1.01.zip
Version: IGOR.6.00.x-1.01
Version Date: Tue, 10/22/2013 - 12:49 pm
Version Major: 1
Version Patch Level: 1
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

Add PASS() which just increases the assertion counter.
Add also one more example and documentation for the usage of PASS() and FAIL().
Fix bug in debug output steaming from an incorrect parameter order of SelectString.

Unit Testing Framework IGOR.6.00.x-1.0

Release File: UnitTestingFramework-v1.0.zip
Version: IGOR.6.00.x-1.0
Version Date: Wed, 02/27/2013 - 03:28 am
Version Major: 1
Version Patch Level: 0
OS Compatibility: Windows Mac-Intel Mac-PPC
Release Notes:

initial release

Forum

Support

Gallery

Igor Pro 8

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More