Skip to content

Tool:OpenCover - the register-setting should be an option, rather than a string #2788

@nils-a

Description

@nils-a

What You Are Seeing?

The current way to use OpenCover is like this:

    OpenCover(cc => {
        cc.NUnit3(tests); // or whatever...
    },
        coverFile,
        new OpenCoverSettings{
            Register = "some-path-to-dll" 
        }
    );

register is represented as a string. Actually register could be empty (admin-mode) the word "user" (user-mode) or the path to a dll.

Additionally it seems impossible not to use the register-setting

What is Expected?

I propose something like this:

    OpenCover(cc => {
        cc.NUnit3(tests); // or whatever...
    },
        coverFile,
        new OpenCoverSettings()
            .WithoutRegister() // to omit the register-settings
            .WithRegisterAdmin() // -register
            .WithRegisterUser() // -register:user <-- this is the default
            .WithRegisterDll(someFilePath) // -register:path-to-dll
    );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions