Page MenuHomePhabricator

Add support for build properties in XUnitTestEngine
Closed, DuplicatePublic

Description

XUnitTestEngine does not let one include build properties. This makes some scenarios impossible.

It would be great to have a unit.csharp.xunit.properties.

Event Timeline

igorgatis raised the priority of this task from to Needs Triage.
igorgatis updated the task description. (Show Details)
igorgatis added a subscriber: igorgatis.

What are build properties exactly? Is this just passing command line flags to the underlying binary?

Yeah, it involves passing /p:Key=Value to MSBuild. It'll be extremely difficult to get right because of Windows escaping rules though.

The other thing is that /p:SkipTestsOnBuild=True is already passed in, so the build scripts can already detect if they're being run as part of arc unit anyway. You could just configure your MSBuild scripts to have something like this to solve the problem:

<PropertyGroup Condition="$(SkipTestsOnBuild) == 'True'">
  <Key>Value</Key>
</PropertyGroup>

Yeah OK. I think this falls into T5568 then, which should cover pas song flags to the underlying tools.