-
Notifications
You must be signed in to change notification settings - Fork 326
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
Tests are failing on Linux for DesktopCLR #865
Comments
@Fir3pho3nixx |
My issue is slightly different. I am using the targeting pack for net461 with framework override. Also my project builds fine. No mono from what I can tell unless that is what is happening under the covers. |
Interesting issue. The framework override is here in the project.
In #851 we're fixing running |
Fix for this is in latest commit to #851 |
@codito - thank you for the quick response to this. I really appreciate it, it will clean up our build process and allow us to move off NUnitLite. |
Great that it will be fixed! Any work around in the mean time? |
Yes, you can temporarily use NUnitLite. Make sure you set AppendRuntimeIdentifierToOutputPath to false. Set your project type to exe. Grab the nunit lite package. Add Program.cs to your test project. Then run it with NUnit options. |
Ok. In that case it looks simpler to do:
I hope dotnet test will fix soon. |
Agreed, our tests are all in NUnit though :/ |
That is exactly what this team is fixing with this issue. Please see #851. It is now in the 15.3 milestone. |
@codito - Can we get this bundled into the current preview? Would be happy to be a test subject. |
@Fir3pho3nixx we're working on getting this into a dotnet-cli dev build (hopefully early next week). |
@codito - Cool, ping back on this issue, I will have an answer for you the next day. |
@Fir3pho3nixx please try out the latest dotnet-cli dev builds: https://github.com/dotnet/cli#installers-and-binaries. In local testing, we hit nunit/nunit3-vs-adapter#327, the workaround is to use dev builds of nunit adapter:
|
I am on holiday for a week and will be able to look at this when I get back. Thanks for pinging back! 👍 |
After updating to the nightly build I have found other issues. Please note, this was before I changed Castle.Core to use the dev build of the NUnit adapter. dotnet restoreAppears to be functioning correctly; when I run the following commands
I get the following output:
dotnet buildAlso appears to function correctly
I get the following output:
Running net461 tests as a console appThis is where the problems start creeping in. Using the following command:
I get the following output:
Running the dotnet core tests using dotnet testI also now have problems. Running the following command:
I get the following output:
|
Here is some more info about my environment:
Not sure what has happened here but it feels like either I am out of date and am in dire need of upgrading or things have gone slightly backwards. If there is anything you guys need please let me know. |
@Fir3pho3nixx is there a branch I can look into for the source? I can try out at my end and suggest if there are any changes. It should be possible to run both desktop and netcore tests with following command:
|
@codito Thanks for getting back to me. I agree that this command should be used for both, however before I even upgraded the project to do this I was having problems with my current configuration so held off. Our current working build is on master @ https://github.com/castleproject/Core. The build script is here and our TravisCI build configuration is here. You can see from the above I upgraded mono and the dotnet cli which started causing the failures. |
Running net461 testsIn Ubuntu,
Running netcoreapp1.1 testsThe error says .net core shared runtime 1.1.2 is not installed. With the dotnet latest dev builds it doesn't come packaged with SDK. The tests ran once I installed it separately from https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1.2-download.md (see Runtime Installer for the OS). |
That is curious, as the binary file used to be generated with a 'x' attr. No problems, going to be converting it all over anyway. Many thanks for taking the time to review. Will close this out once I have replicated your recommendations successfully. |
Mono docs mention it is possible to use |
@Fir3pho3nixx just checking in, were you able to run the tests in linux? |
|
@Fir3pho3nixx : If you don't have any open question here then can I close this issue? |
My apologies, meant to close this ages ago. Thank everyone! |
Hi, will this be fixed anytime soon in the official release? Thanks! |
Description
I am trying to solve the following issues:
castleproject/Windsor#243
nunit/nunit3-vs-adapter#324Steps to reproduce
Please clone the repro at: https://github.com/fir3pho3nixx/nunit-adapter-vs-xunit
Run
build.sh
on linux.Expected behavior
I don't get
System.ComponentModel.Win32Exception: Permission denied
Actual behavior
I get
System.ComponentModel.Win32Exception: Permission denied
Environment
The text was updated successfully, but these errors were encountered: