You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, every command line argument is interpreted as the name of a suite to run. As if all params are values for the "inputs" parameter.
Although including more options is relatively easy, the problem you want to solve is a little more complex. Because we want to pass information to the tests rather than the test suite. It's contextual. So we need to agree on a convention to forward these parameters to the test suite.
We should make a short list of choices, and then decide. Some options are:
User overrides main and works on the command line arguments to store important values in some global variables before calling return ::test_suite::detail::run(log, argc, argv);
test -1 path/to/file.txt puts the string in some global array at position 1
The text was updated successfully, but these errors were encountered:
Boost.Test (and other tooks like git) do this by having a separator argument --. Anything before the separator is parsed by the framework, anything after it, by the user.
The inability to pass command line arguments through test_suite.hpp is a problem.
We need to change the tool to support the existing features and also allow passing params.
url/extra/test_main.cpp
Line 473 in 4980f8e
Currently, every command line argument is interpreted as the name of a suite to run. As if all params are values for the "inputs" parameter.
Although including more options is relatively easy, the problem you want to solve is a little more complex. Because we want to pass information to the tests rather than the test suite. It's contextual. So we need to agree on a convention to forward these parameters to the test suite.
We should make a short list of choices, and then decide. Some options are:
return ::test_suite::detail::run(log, argc, argv);
test -1 path/to/file.txt
puts the string in some global array at position 1The text was updated successfully, but these errors were encountered: