Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Extensions.DI.Specification.Tests need to be shipped #37108

Closed
maryamariyan opened this issue May 28, 2020 · 10 comments · Fixed by #48858
Closed

Microsoft.Extensions.DI.Specification.Tests need to be shipped #37108

maryamariyan opened this issue May 28, 2020 · 10 comments · Fixed by #48858
Assignees
Labels
Milestone

Comments

@maryamariyan
Copy link
Member

maryamariyan commented May 28, 2020

DI.External tests use DI.Specification.Tests #37103

Outside of the runtime repo, DI.Specification.Tests could be useful and they used to be shipped from extensions repo prior to dotnet/extensions#3160

This issue keeps track of this work item.

@maryamariyan maryamariyan self-assigned this May 28, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label May 28, 2020
@maryamariyan
Copy link
Member Author

@JunTaoLuo Do we also need to be shipping Logging.Tests? or DI.Specification.Tests is the only one needed to ship?

@maryamariyan maryamariyan added this to the Future milestone May 28, 2020
@maryamariyan
Copy link
Member Author

cc: @safern

@JunTaoLuo
Copy link
Contributor

Di.Specification.Tests need to be shipped. Logging.Tests do not.

@ericstj ericstj removed the untriaged New issue has not been triaged by the area owner label Jun 18, 2020
@maryamariyan
Copy link
Member Author

nuget package link
https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection.Specification.Tests
as expressed in this issue we need to be shipping Microsoft.Extensions.DependencyInjection.Specification.Tests

csproj in dotnet/extensions
https://github.com/dotnet/extensions/blob/v3.1.8/src/DependencyInjection/DI.Specification.Tests/src/Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj

I think dotnet/runtime doesn't have any test project currently that ships as a package as well. So not sure if there is a straightforward way to package this.

@safern how do you think we can accomplish this task for Microsoft.Extensions.DependencyInjection.Specification.Tests?

@safern
Copy link
Member

safern commented Sep 30, 2020

Hmm I think we would need to add a pkgproj for that and then mark it as IsShipping=false

cc: @ericstj

@ericstj
Copy link
Member

ericstj commented Oct 1, 2020

Yeah, that's the best way to do it. I believe it is desired to be shipping though. I see a couple GitHub repos share these tests.

@safern
Copy link
Member

safern commented Oct 1, 2020

Shipping would mean that it would be stable and that it would go into nuget, do we want that, or is it enough with a non-stable package, that ships to our public dnceng feeds?

@ericstj
Copy link
Member

ericstj commented Oct 2, 2020

It looks to me like these tests previously shipped public stable and are consumed by other public repositories.

This raises another concern that our tests depend on assemblies that don’t ship.

@maryamariyan maryamariyan added this to Uncommitted in ML, Extensions, Globalization, etc, POD. via automation Oct 13, 2020
@maryamariyan maryamariyan added the test-enhancement Improvements of test source code label Oct 13, 2020
@maryamariyan maryamariyan moved this from Uncommitted to Future in ML, Extensions, Globalization, etc, POD. Feb 3, 2021
@ericstj
Copy link
Member

ericstj commented Feb 26, 2021

Here's a commit that does this: ericstj@21cdff8

It depends on @Anipik's change #48385

Some things to decide:

  • I just suppressed the package dependency on Microsoft.DotNet.XUnitExtensions. It might be better to #ifdef the usage or add ConditionalAttribute to all the test API in Arcade to strip it so that we don't ship the dangling dependency.
  • Rather than source-share, we could consume this in our own tests.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Feb 27, 2021
@ericstj ericstj assigned ericstj and unassigned maryamariyan Mar 1, 2021
@ericstj ericstj modified the milestones: Future, 6.0.0 Mar 1, 2021
@ghost ghost moved this from Future to 6.0.0 in ML, Extensions, Globalization, etc, POD. Mar 1, 2021
@ericstj
Copy link
Member

ericstj commented Mar 1, 2021

self-assigning since I'm driving a PR for this.

ML, Extensions, Globalization, etc, POD. automation moved this from 6.0.0 to Done Mar 2, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Mar 2, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants