Hi,

good catch. We should probably not automatically add the linker 
dependency in case of a test driver being created for an auto-load 
module. I will change this ASAP (test drivers could still add the 
dependency explicitly themselves).

As a note, if you want to work with a specific service implementation in 
your test, you could use:

- A service property (e.g. "service.pid", for persistent identifier) to 
identify the service object registered by the auto-load module or
- Get the services registered by the auto-load module in your test via 
context->GetModule("auto-load-module-name")->GetRegisteredServices()

Best,
Sascha

On 04/11/2015 04:20 PM, Clarkson, Matt wrote:
> Hi there,
>
> If I have a module that ONLY contains MicroServices eg. New IO stuff, using 
> the IFileReader and IFileWriter type interfaces, then as I understand it, 
> nothing should need to link to this module. The module should be auto-loaded 
> and services registered when autoloading. This includes unit tests.
>
> So, I have some Readers/Writers in a dedicated module, niftkCoreIO. This 
> niftkCoreIO depends on MitkCore, and should be autoloaded. All code is in an 
> “Internal” folder, and no symbols exported.
>
> But the CMake macro to create unit tests seems to create a specific 
> dependency on niftkCoreIO.
>
> Is this right?
>
> https://github.com/MITK/MITK/blob/master/CMake/mitkMacroCreateModuleTests.cmake#L38
>
> Thanks
>
> Matt
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to