Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:20
    ajunlonglive starred cake-build/cake
  • 07:22
    tapika edited #4079
  • 07:21
    tapika opened #4079
  • Nov 28 19:41
    calebRH starred cake-build/cake
  • Nov 28 17:10
    BalintBanyasz starred cake-build/cake
  • Nov 28 16:00
    c0ffeine starred cake-build/cake
  • Nov 26 12:33
    devlead commented #3517
  • Nov 26 06:44
    jingliancui commented #3517
  • Nov 26 06:40
    jingliancui commented #3517
  • Nov 24 20:50
    guykisel starred cake-build/cake
  • Nov 24 13:22
    augustoproiete assigned #514
  • Nov 23 20:49
    Fifok starred cake-build/cake
  • Nov 23 09:37
    CSkoubo starred cake-build/cake
  • Nov 23 04:22
    gersoncjunior starred cake-build/cake
  • Nov 22 18:46
    squid-box commented #4071
  • Nov 22 15:23
    augustoproiete commented #1317
  • Nov 22 15:21
    augustoproiete unassigned #1317
  • Nov 22 15:21
    augustoproiete assigned #1317
  • Nov 22 15:18
    FrankRay78 commented #514
Mike Gottlieb
@mikegottlieb
instead I need to invoke the dotnet and give it the path to xunit.console.dll
then I give it the path to my unit tests dll
so I’m not sure just overriding the toolpath would work, but maybe if I did it in the right way?
I saw some other cake libraries provided platform settings
Rodney Littles II
@RLittlesII
Can I reproduce this with any stock .NET Core Xamarin app?
Mike Gottlieb
@mikegottlieb
Something like that might help. I would say requiring the dotnet cli be installed is fine since the whole point of cake for people is that they want to be less dependent on IDEs
Probably, although I just tried to create one in VS4mac and there was no XF template that used a netstandard library lol
My setup is I have a Xamarin.Forms app. The shared code is in a netstandard 2.0 library. The unit tests project are also a netstandard 2.0 library.
Rodney Littles II
@RLittlesII
Are you in a position to post a repo that reproduces your issue? If not, I think I am going to try so I can have a more intelligent conversation about what the problem is and how to fix it.
Do you have targets with your unit test?
Mike Gottlieb
@mikegottlieb
I can’t share my current project, sorry.
Rodney Littles II
@RLittlesII
No worries
Mike Gottlieb
@mikegottlieb
not sure what you mean by targets?
Rodney Littles II
@RLittlesII
iOS xunit project and such
So you can test on device?
I’m walking into an afternoon of meetings. I’ll check back in in a moment
Mike Gottlieb
@mikegottlieb
oh, no. I’m writing tests against my shared code library. I do have a UI test project for testing some stuff on device. I’m having different troubles with my cake scripts for that.
I have a fairly limited amount of device specific code and a lot of it is using location services and background services so a bit tricky to truly test.
Gary Ewan Park
@gep13
@mikegottlieb @RLittlesII so I think I asked this the other day, but let me ask again, based on the discussion that you guys have just had....
sounds like you want to be using DotNetCoreTest, rather than the XUnit Aliases. Have you tried using that yet?
Mike Gottlieb
@mikegottlieb
That doesn’t work for other reasons
Or maybe I just didn’t provide additional settings to it that were required.
Gary Ewan Park
@gep13
Hmm, this sounds like something that needs to be investigated.
Mike Gottlieb
@mikegottlieb
It seems like when I invoke any of the DotNetCoreXYZ aliases in Cake my environment config is off.
Gary Ewan Park
@gep13
If you could create a small reproducible sample of the type of thing that you are trying to do, that would help immensely!
It would be good to know if this is somethign specific to configuration, or something that is off with the aliases that we have
I have now been using the DotNetCore Aliases for a number of addins that I am the maintainer of, which have tXUnit tests in them, and I haven't had any issues
Mike Gottlieb
@mikegottlieb
Well I know DotNetCoreBuild doesn’t work for a full Xamarin app because the device specific projects are not netstandard libraries.
Gary Ewan Park
@gep13
it could be the mixture of Xamarin that is causing problems, but without a sample to test against, not sure what else we can do
Mike Gottlieb
@mikegottlieb
And DotNetCoreMSBuild doesn’t work because the environment is missing settings that my Xamarin projects expect
But regular MSBuild works, so I’m using that
Invoking the DotNetCoreTest method I believe was failing to find xunit
Gary Ewan Park
@gep13
@Redth @RLittlesII are these sorts of issues that you guys have seen before?
Jonathan Dick
@Redth
i don’t think generally we can build xamarin projects with dotnet
unless you’re using the new project structure, which is a bit tricky with xamarin currently (though it’s possible)
Mike Gottlieb
@mikegottlieb
yeah, I thought maybe the whole dotnet msbuild hybrid could.
Martin Björkström
@mholo65
@/all I'll soon start preparing for 0.27.0 release. So this is your daily reminder to pin your Cake version.
Mike Gottlieb
@mikegottlieb
I still think it might be able to, it was just choking on some environment variable using in my ios and android project files
Jonathan Dick
@Redth
what’s in 0.27?
@mikegottlieb yeah you’re in uncharted waters i think at that point :D
Mike Gottlieb
@mikegottlieb
lol not surprising
Turns out half the time I am over in Xamarin land too
I’m on their slack all day bringing up things that they don’t consider
like that dev teams can’t afford to be forced to take version upgrades with tons of breaking changes every 3 months. Especially dev teams of 1.
Martin Björkström
@mholo65
@Redth click the link :smile:
Jonathan Dick
@Redth
magic :laughing:
Mattias Karlsson
@devlead
Jonathan Dick
@Redth
nice! i need to read up again and see where everything stands with bootstrappers and nuget client addin installation etc
cakebot
@cake-build-bot
@/all Version 0.27.0 of the Cake has just been released, https://www.nuget.org/packages/Cake.
Rodney Littles II
@RLittlesII
@gep13 No. I haven't seen them before, but I haven't ported to net standard. I haven't ever attempted to run unit tests for my Xamarin projects through Cake. That's why I am so interested in what @mikegottlieb is doing. I am trying to learn from his problems so we can solve them.
So I am going to try and reproduce the issues see if there is a good solution for them because I will face this at some point. Just not sure when.