Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add ExcludeFromCodeCoverageAttribute#11986

Merged
danmoseley merged 1 commit intodotnet:masterfrom
danmoseley:dan.excludecodecover2
Oct 1, 2016
Merged

Add ExcludeFromCodeCoverageAttribute#11986
danmoseley merged 1 commit intodotnet:masterfrom
danmoseley:dan.excludecodecover2

Conversation

@danmoseley
Copy link
Copy Markdown
Member

Fixes #10685

@ericstj is there any meta file that I missed editing?

@danmoseley
Copy link
Copy Markdown
Member Author

@Wesh look ok?

[Fact]
public void ExcludeFromCodeCoverageAttribute_Instantiate()
{
new ExcludeFromCodeCoverageAttribute();throw null;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it that all of the tests passed when there's this explicit throw null here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh - my bad, I was verifying that the tests were running. Clearly, they're not.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not building the test .csproj with '$(TargetGroup)'=='netstandard1.7'. Hmm.

@danmoseley danmoseley force-pushed the dan.excludecodecover2 branch 2 times, most recently from 1b4c948 to 3903340 Compare September 23, 2016 19:03
@danmoseley
Copy link
Copy Markdown
Member Author

Actually, this may need to be a case of exposing from coreclr instead.

@danmoseley
Copy link
Copy Markdown
Member Author

@ericstj Can you confirm it's correct to put this into corefx ? I thought so as it's not exposed publicly from the base library, but I seem to remember you may have said otherwise.

@stephentoub
Copy link
Copy Markdown
Member

@danmosemsft, what are the next steps on this one? Are you still waiting for feedback from @ericstj? Thanks.

@ericstj
Copy link
Copy Markdown
Member

ericstj commented Sep 30, 2016

LGTM after rebase.

@danmoseley danmoseley force-pushed the dan.excludecodecover2 branch 3 times, most recently from 3c0fc7d to 3fdb2e6 Compare September 30, 2016 19:10
@danmoseley danmoseley force-pushed the dan.excludecodecover2 branch from 3fdb2e6 to 78575e6 Compare September 30, 2016 21:29
@danmoseley
Copy link
Copy Markdown
Member Author

Hit a CI timeout https://github.com/dotnet/corefx/issues/12252 but need to rebase anyway.

@danmoseley danmoseley merged commit 277f031 into dotnet:master Oct 1, 2016
@danmoseley danmoseley deleted the dan.excludecodecover2 branch October 1, 2016 00:23
"netstandard1.7": {}
},
"supports": {
"coreFx.Test.netcore50": {},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need to add corefx.Test.netcoreapp1.1 to get your netstandard17 test configuration to run.

<TestTFMs>netcore50;net46</TestTFMs>
<OSGroup>Windows_NT</OSGroup>
</Project>
<Project Include="System.Diagnostics.Tools.Tests.csproj">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joperezr you are going to need to pick-up this change with your PR #12241.

@karelz karelz modified the milestone: 1.2.0 Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants