Skip to content

Re-enable xUnit tests on Linux - #850

Merged
Andy Jordan (andyleejordan) merged 3 commits into
masterfrom
andschwa/fix-xunit
Apr 19, 2016
Merged

Andy Jordan (andyleejordan) merged 3 commits into
masterfrom
andschwa/fix-xunit

Conversation

@andyleejordan

@andyleejordan Andy Jordan (andyleejordan) commented Apr 14, 2016 •

Copy link
Copy Markdown
Member

The latest xUnit packages fix the "could not resolve coreclr path" problem we were having. To resolve all dependencies, the cli-deps feed was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default AssemblyLoadContext. So we have to allow PowerShell to continue with a test harness's ALC.

We do not (yet) support running the tests on OS X, so we pretend they pass for now.

This resolves #806.


This change is Reviewable

The latest xUnit packages fix the "could not resolve coreclr path"
problem we were having. To resolve all dependencies, the cli-deps feed
was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default
AssemblyLoadContext.
We have to pretend they pass on OS X for now.
@andyleejordan Andy Jordan (andyleejordan) added the WG-Quality-Test issues in a test or in test infrastructure label Apr 15, 2016
@andyleejordan

Copy link
Copy Markdown
Member Author

@andyleejordan

Copy link
Copy Markdown
Member Author

/cc sergei (@vors) Dongbo Wang (@daxian-dbw) Steve Lee (@SteveL-MSFT) Waiting for review to merge.

@vors

Copy link
Copy Markdown
Collaborator

Looks fine to me, but I don't know much about ALC. I think Dongbo Wang (@daxian-dbw) should sign-up on that before merge.

@daxian-dbw

Copy link
Copy Markdown
Member

Andy Jordan (@andschwa) core powershell assumes the PowerShellAssemblyLoadContext to be the default ALC. With this change the assumption is broken, and I don't know how we can trust core powershell running that way.

@andyleejordan

Copy link
Copy Markdown
Member Author

We can log a message for debugging later if we need. But under the test harness, the PowerShell ALC cannot be the default. I don't see this breaking PowerShell itself, as it would still run with its own ALC when outside the test harness.

@daxian-dbw

Copy link
Copy Markdown
Member

I think when testing core powershell, the tests should run in the same core powershell settings as when presented to the user. If they are running in a different core powershell settings, then it's hard to say if the test results are reflecting the true issues.

@andyleejordan

Copy link
Copy Markdown
Member Author

That is not currently possible under the available xUnit runner. If you can find a way, please do, but AFAICT the harness sets the default ALC before running any of our code.

@andyleejordan

Copy link
Copy Markdown
Member Author

However, the latest xUnit packages do not allow us to set the default AssemblyLoadContext. So we have to allow PowerShell to continue with a test harness's ALC.

@daxian-dbw

Copy link
Copy Markdown
Member

I sign off the PS-ACL changes to unblock the xUnit test run.
But I think this is a broader test infrastructure problem and thus opened issue #864

@andyleejordan

Copy link
Copy Markdown
Member Author

Thanks Dongbo! I agree, think the .NET team will be able to help us out here, but we need to get the runner back up first.

@andyleejordan

Copy link
Copy Markdown
Member Author

sergei (@vors) should we disable the Reviewable check entirely or require the sign off to go through there?

@vors

Copy link
Copy Markdown
Collaborator

Let's disable it

@andyleejordan

Copy link
Copy Markdown
Member Author

All right, it should be disabled going forward now.

@andyleejordan
Andy Jordan (andyleejordan) deleted the andschwa/fix-xunit branch April 19, 2016 02:27
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WG-Quality-Test issues in a test or in test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the xUnit runner

3 participants