Skip to content

Move tests from full facade assemblies into type forward destination #89230

Closed

Description

@ViktorHofer

#89184 moved full façade assemblies into src/libraries/shims but left the tests in their original location. This issue tracks moving the tests and their test projects into the type forward destination (in most cases System.Runtime/tests/):

  • System.AppContext
  • System.Buffers
  • System.Data.DataSetExtensions
  • System.Diagnostics.Debug
  • System.Diagnostics.Tools
  • System.Dynamic.Runtime
  • System.Globalization
  • System.Globalization.Calendars
  • System.Globalization.Extensions
  • System.IO
  • System.IO.FileSystem
  • System.IO.FileSystem.Primitives
  • System.IO.UnmanagedMemoryStream
  • System.Reflection
  • System.Resources.Reader
  • System.Resources.ResourceManager
  • System.Runtime.CompilerServices.Unsafe
  • System.Runtime.Extensions
  • System.Runtime.Handles
  • System.Runtime.InteropServices.RuntimeInformation
  • System.Security.SecureString
  • System.Text.Encoding
  • System.Threading.Tasks
  • System.Threading.Tasks.Extensions
  • System.Threading.Timer
  • System.ValueTuple

Activity

  1. ghost added
    untriaged
    on Jul 20, 2023
  2. ericstj commented on Jul 20, 2023

    @ericstj
    Member

    Is there an easy version of this that just moves the projects into subdirectories in System.Runtime\tests but doesn't do any project refactoring?

  3. ViktorHofer commented on Jul 20, 2023

    @ViktorHofer
    MemberAuthor

    What do you mean by project refactoring? I would hope that moving the test sources doesn't need any major msbuild work. As an example, moving System.AppContext.Tests.csproj doesn't require changing the project file: https://github.com/dotnet/runtime/blob/main/src/libraries/System.AppContext/tests/System.AppContext.Tests.csproj

  4. ericstj commented on Jul 21, 2023

    @ericstj
    Member

    I meant we could simply move the project files as is - giving a test folder with the same name as the test project - rather than trying to combine the sources with the existing System.Runtime.Tests.csproj.

  5. MichalStrehovsky commented on Jul 21, 2023

    @MichalStrehovsky
    Member

    WASM is running into some implementation limitations in System.Text.Json test because they're too huge (#87078). If most of these are going to and up in System.Runtime.Tests, we might run into same impl limitations (I'm not clear what they are - just pointing to an issue that has them, with people that might understand more).

  6. ViktorHofer commented on Jul 21, 2023

    @ViktorHofer
    MemberAuthor

    Oh I see. I should have clarified in the top post. I think it would be best to move the tests as is, including their project files and not attempt to merge the test sources into the existing test projects.

    Libraries' tests.proj disables test projects based on configurations (mobile vs NativeAOT vs wasm, ...). If one of these test projects is already disabled and we would now merge the test source code into an existing test project, those tests would need to be disabled inside the assembly.

  7. removed
    untriaged
    on Jul 21, 2023
  8. added this to the Future milestone on Jul 21, 2023
  9. added
    help wanted
    on Oct 31, 2023
  10. self-assigned this
    on Nov 12, 2023
  11. ghost added
    in-pr
    on Nov 12, 2023
  12. ghost removed
    in-pr
    on Nov 13, 2023
  13. locked and limited conversation to collaborators on Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Runtimehelp wanted

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions