Skip to content

enable -mt task authors to unit test with TaskEnvironment #12922

@JanProvaznik

Description

@JanProvaznik

currently TaskEnvironment has an internal constructor, however task authors may wish to unit test their task classes by setting a mock ibuildengine, and now they'd need a mock TaskEnvironment - and it does not make much sense for them to reimplement what we do in MSBuild and they'll probably be interested in what is the real behavior of msbuild's TaskEnvironments (multithreaded/multiprocess) with their task

it would make sense to expose TaskEnvironment (with clear intent that it's an api for testing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions