• Matthias Vallentin's avatar
    Add ability to register command line arguments. · 7e7871c4
    Matthias Vallentin authored
    By adding a delimeter "--" into the sequence of arguments, it is now
    possible to partition the command line arguments into two halves.
    The unit test binary consumes everything before "--" and the unit test
    engine registers anything after "--".
    
    For example,
    
        caf-test -n -- foo bar
    
    passes "-n" to the caf-test parser to disable colors, whereas user tests
    can now access the remaining two arguments "foo" and "bar" via
    test::engine::argc() and test::engine::argv().
    7e7871c4
unit_test_impl.hpp 17.5 KB