You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move tests from full facade assemblies into type forward destination #89230
#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/):
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.
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).
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.
Activity
ericstj commentedon Jul 20, 2023
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?
ViktorHofer commentedon Jul 20, 2023
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.csprojdoesn't require changing the project file: https://github.com/dotnet/runtime/blob/main/src/libraries/System.AppContext/tests/System.AppContext.Tests.csprojericstj commentedon Jul 21, 2023
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.
MichalStrehovsky commentedon Jul 21, 2023
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).
ViktorHofer commentedon Jul 21, 2023
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.
Move tests from full facade folder to type forward destination
Move tests from full facade folder to type forward destination
Move tests from full facade folder to type forward destination (#94644)