Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#14 Paramater passing

open
nobody
5
2002-07-15
2002-07-15
Gary Hennigan
No

I'm developing in a large framework and trying to
decipher the data structures within that framwork so I
can create them manually in the setUp() method of a
CppUnit::TestFixture is practically impossible.

It would be much easier if I could pass in the relevant
data structures needed by my own methods to the test
methods after the framework has created them.
Unfortunately it doesn't appear that CppUnit supports
any type of paramater passing.

Discussion

  • Logged In: YES
    user_id=196852

    Could you precise what kind of parameter passing you need
    exactly ?

    Couldn't you use a singleton which old your structure and
    retrieve them from there ?

    Baptiste.