Boost logo

Boost :

Subject: [boost] [test] unit test command-line handling
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2018-09-11 22:21:35


Hello,

this is a question concerning the Boost.Test framework.

I'd like to pass command-line arguments to my tests, and I'm unsure of
how to proceed. I have found
https://www.boost.org/doc/libs/1_68_0/libs/test/doc/html/boost_test/adv_scenarios/obsolete_init_func.html,
which shows how to access the command-line programmatically, but that's
declared obsolete, and it's also lacking some important info, such as
how I should handle the argv vector. Are there any examples that
demonstrate this use case ? Specifically:

* What (non-deprecated) API can I use to access command-line arguments
during test initialization ?

* How does my own handling of command-line arguments interact with
Boost.Test's own command-line argument handling ?

Thanks,

Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...
    

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk