Skip to content

Supply our own runner #475

@LujunWeng

Description

@LujunWeng

Is that possible I supply my own runner and control the beginning of each testcase?
I find in the default main function run(argc, argv) is directly called as follows

// Standard C/C++ main entry point
int main (int argc, char * const argv[]) {
    return Catch::Session().run( argc, argv );
}

I think it better if there is another run method with some runner passed, like this one
Catch::Session().run( argc, argv, new somerunner() );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions