Opened 15 years ago

Closed 15 years ago

#1561 closed Bugs (worksforme)

Using BOOST_AUTO_TEST_CASE with boost::program_options

Reported by: John Pavel jrp - at - dial - dot - pipex - dot - com Owned by: Gennadiy Rozental
Milestone: Boost 1.35.0 Component: test
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

I am trying to use boost::program options with BOOST_AUTO_TEST_CASE, but cannot work out how / where to set up the main program and get at the arguments.

The issue seems to be complicated by test recognising some options (according to some of the documentation).

Is there a suitable recipe?

Change History (2)

comment:1 by John Pavel jrp at dial dot pipex dot com, 15 years ago

This can be close as I have hit upon a solution that seems to do the trick.

comment:2 by Gennadiy Rozental, 15 years ago

Resolution: worksforme
Status: newclosed

you should use shared library version of Boost.Test. It has an ability otdo what you need.

Note: See TracTickets for help on using tickets.