-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
Goes with dotnet/corefx#4118 |
GitHub is having a hard time displaying the diff here, not exactly sure why. Could you try keeping the tabs at 2 spaces instead of 4 and seeing if it's easier to diff? |
My old targets were buggy and didn't allow perf tests to be included when building the tests but not running them. I've modified them and renamed them to better accomodate this. I also removed the v5.0 TargetFramework declarations that are no longer required.
Huh, sorry about that. Not sure why it replaced my spaces. Fixed. |
<Error Text="To run performance tests, .NET Portable v5.0 must be installed with VS 2015. Installation instructions available at: https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/performance-tests.md" | ||
Condition="'$(Performance)' == 'true' and '$(RunPerfTestsForProject)' != 'true'" /> | ||
</Target> | ||
<!-- Optimizations to configure Xunit for performance --> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I'm trying to understand the overall diff here, meaning the overall difference in behavior given different commands. You replaced |
<!-- Perf tests require TargetFrameworkVersion=v5.0. If it isn't installed, throw a helpful warning and run unit tests instead --> | ||
<Target Name="ValidateFrameworkVersion" BeforeTargets="RestorePackages"> | ||
<Error Text="To run performance tests, .NET Portable v5.0 must be installed with VS 2015. Installation instructions available at: https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/performance-tests.md" | ||
Condition="'$(Performance)' == 'true' and '$(RunPerfTestsForProject)' != 'true'" /> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Sorry @mellinoe , I didn't prioritize diff minimization at all. I want to accomplish a few things:
|
Sorry, I was just trying to understand the overall difference in behavior here the easiest, because I was thinking that the first two bullet points you listed were sort of a no-op in terms of behavior differences and were more for cleaning up the target (which is definitely a good thing).
That seems reasonable to me. There was also the difference in that you could explicitly set RunPerfTestsForProject to 'false' in order to avoid actually running the performance tests while still building them, so it's a bit less clear to me if this is the same as before. But it seems like this property wasn't really helpful or clear, or perhaps didn't even work correctly. I think it makes more sense now in that you set Performance=true if you want to build everything for performance tests, and then you build the "Test" target if you actually want to run them. Does that sound like an accurate description of how things will work?
No, we should leave it, it makes more sense where it is now, especially if RunPerfTestsForProject is gone, because then it would be the only thing up there 😄. I think when I made that note above I didn't realize that RunPerfTestsForProject was removed (which is fine, I don't think it was that useful). Overall this LGTM. |
Thanks, @mellinoe!
Yup, exactly. |
My old targets were buggy and didn't allow perf tests to be included when building the tests but not running them. I've modified them and renamed them to better accomodate this.
I also removed the v5.0 TargetFramework declarations that are no longer required.
@mellinoe @jhendrixMSFT