JustMock support for Windows 10 UWP (RTM)

13 posts, 0 answers
  1. Davide
    Davide avatar
    1 posts
    Member since:
    Feb 2014

    Posted 07 Aug 2015 Link to this post

    The current version of Telerik JustMock Lite does not appear to be supported on the Windows 10 UWP (RTM) platform.

    (1) Can you confirm if there is active work underway for JustMock Lite to support this platform?
    (2) Can you provide an indication of the estimated release date? I’ll need to make a call to determine if we need to switch to a different mocking framework depending on these timelines.

    Background info
    Note that UWP (Universal Windows Platform) was referred to as UAP (Universal App Platform) before RTM was released. UWP is the correct term to use for the platform going forwards. Initial project development was on a Windows 10 Universal App (UAP) project in Visual Studio 2015 RC 14.0.22823.1 (Windows 8.1 OS). We can confirm that the mocking behaviour was working with these pre-release tools. After upgrading Windows and Visual Studio from Technical Preview (UAP) to RTM (UWP), we now experience warnings during build output and any tests with mocking behaviour no longer run (throws exception).

    Product versions
    Microsoft Windows 10 Professional - 10.0.10240.16384 RTM x64 (2015/07/15)
    Microsoft Visual Studio 2015 - 14.0.23107.10 RTM (2015/07/10)
    Telerik JustMock Lite - 2015.2.715.1 (2015/07/15)

    Sample code snippet

    1.[TestMethod]
    2.public void ExampleTest()
    3.{
    4.    // This line throws an exception.
    5.    var mockLogger = Mock.Create<ILogger>(Behavior.Loose);
    6.}

    Sample build warning output
    C:\Program Files (x86)\Telerik\JustMock Lite\Libraries\Telerik.JustMock.dll : warning MSB3817: The assembly "C:\Program Files (x86)\Telerik\JustMock Lite\Libraries\Telerik.JustMock.dll" does not have a NeutralResourcesLanguageAttribute on it. To be used in an app package, portable libraries must define a NeutralResourcesLanguageAttribute on their main assembly (ie, the one containing code, not a satellite assembly).

    Sample debug console output
    Exception thrown: 'System.IO.FileLoadException' in MyProj.Win10.Tests.exe
    An exception of type 'System.IO.FileLoadException' occurred in MyProj.Win10.Tests.exe but was not handled in user code
    Additional information: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    HResult: -2146234304
    Source: Telerik.JustMock
    Stacktrace: at Telerik.JustMock.Mock.Create[T](Behavior behavior), at MyProj.Win10.ExampleTest()

     

    Your feedback would be much appreciated.​ 

    Thanks,
    Davide

  2. Craig
    Craig avatar
    1 posts
    Member since:
    Aug 2015

    Posted 07 Aug 2015 Link to this post

    +1
  3. DevCraft R3 2016 release webinar banner
  4. Freddy
    Freddy avatar
    1 posts
    Member since:
    Jun 2011

    Posted 11 Aug 2015 Link to this post

    Hello

    We are start building app for UAP Win10. Would like to use JustMock, have used it before and it is good. When is JustMock working with Win10?

    Thank you.
  5. Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 12 Aug 2015 Link to this post

    Hello all,

    We're currently researching the possibility to provide a NETCore build for JustMock. The main probable deal-breaker is Castle's DynamicProxy and whether UWP will support Reflection.Emit

    Regardless of whether dynamic code generation works, JustMock Lite can be made to work. We just need some additional time to examine the details.

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Stefan
    Stefan avatar
    1 posts
    Member since:
    Sep 2015

    Posted 03 Sep 2015 in reply to Stefan Link to this post

    Hey Stefan,

    is there any update/progress on this topic?

    Kind regards,
    Stefan

  7. Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 04 Sep 2015 Link to this post

    Hello Stefan,

    We have some preliminary data available.

    It seems that it will be easy to get JustMock Portable (a.k.a. JustMock for Devices) to run on UWP, but that may be of little comfort, because it is only available as part of the paid offering. We have not yet started work on this prospect and I cannot say for sure whether it will be done for Q3 or not.

    JustMock Lite will be substantially harder to port to UWP. Not impossible, but time-consuming. At any rate it is very likely that it won't be done for Q3.

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Carlos
    Carlos avatar
    14 posts
    Member since:
    Feb 2012

    Posted 31 Oct 2015 in reply to Stefan Link to this post

    I like to purchase JustMocks but I need it to work in Windows Universal Apps.

    Is it available for UAP ?  if not, whats the ETA ?

    thanks

     

  9. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 04 Nov 2015 Link to this post

    Hello,

    UAP is not supported by JustMock and it is not on our roadmap yet. We are still collecting requests for it. You can vote for the feature request in our portal to increase its priority.

    Regards,
    Iana Tsolova
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  10. Christopher
    Christopher avatar
    2 posts
    Member since:
    Apr 2011

    Posted 20 Nov 2015 in reply to Iana Tsolova Link to this post

    Hi Iana, 

    The link to the vote page does not work. Is there another page to add our vote ?

    Thanks in advance, 
    Christopher

  11. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 23 Nov 2015 Link to this post

    Hello Christopher,

    The provided link works okay for me. However, here is the exact url of the feature request:
    http://feedback.telerik.com/Project/105/Feedback/Details/166073-support-windows-10-uwp-uap-unit-test-projects

    Please, let me know if it doesn't work as well.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  12. Christopher
    Christopher avatar
    2 posts
    Member since:
    Apr 2011

    Posted 23 Nov 2015 in reply to Kaloyan Link to this post

    Hello Kaloyan, 
    In fact, yes, the link is working, but only when I'm logged out.
    When I'm sign-in (to add my vote), I got to an error page.

     

    Regards, 
    Christopher

  13. Amit
    Amit avatar
    1 posts
    Member since:
    Apr 2016

    Posted 12 May Link to this post

    Is there any update for this topic ?
  14. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 16 May Link to this post

    Hello,

    I am afraid no. UWP support is high on our list, but I can not promise you anything yet.

    Regards,
    Svetlozar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft R3 2016 release webinar banner