fermion42 / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

GTMNSObject+UnitTesting algorithm for finding gtm_pathForFileNamed:extension: is not available outside of UnitTest targets #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In TestMerge (part of the Core Plot project), we've written a tool to manage 
the section of new 
output/reference/failed output files from GTM's image and state assertion 
macros. Because the 
algorithm for finding the most specific name(.arch)*(.os)*.extension path for a 
named output is 
encapsulated in GTMNSObject+UnitTesting which imports SenTesting/SenTesting.h, 
we can't use 
the existing algorithm in a non-unit testing context (i.e. within 
TestMerge.app). We've duplicated 
the code within TestMerge, but this is obviously non-idea.

It would be beneficial for us if that algorithm was exposed via a non-unit 
testing-specific API. For 
reference the use of the copied code in TestMerge is in -[OutputGroup  
mostSpecificGTMUnitTestOutputPathInSet:(NSSet*)paths name:(NSString*)name 
extension:(NSString*)ext] (http://code.google.com/p/core-
plot/source/browse/TestMerge/MOClasses/OutputGroup.m).

Original issue reported on code.google.com by barryw...@gmail.com on 5 Jun 2009 at 10:01