Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fraser 1 post 71 karma points
    Dec 20, 2016 @ 11:55
    Fraser
    0

    Unit Test issue

    Hi folks,

    I'm trying to set up Unit Tests in umbraco, following a guide here: http://bomboca.co.uk/umbraco-cms/unit-testing-umbraco/stub-umbraco-dependencies/

    I've set everything up, but when I run my unit test I get the following error:

    Result StackTrace:  
    at Umbraco.Tests.TestHelpers.BaseDatabaseFactoryTest.Initialize()
    at Umbraco.Tests.TestHelpers.BaseWebTest.Initialize() in C:\...\Umbraco.Tests\TestHelpers\BaseWebTest.cs:line 31
    Result Message: SetUp : System.MissingMethodException : Method not found: 'Void Umbraco.Core.Persistence.DefaultDatabaseFactory.ResetForTests()'.
    

    Struggling to get to the bottom of the issue. Does anyone have any ideas?

  • Nico 10 posts 77 karma points
    May 26, 2017 @ 04:50
    Nico
    0

    Had to revert UmbracoCms.Core to version 7.5.11, using Our.Umbraco.Community.Tests v7.5.14

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    May 26, 2017 @ 08:47
    David Brendel
    0

    Hi Fraser,

    the article is a bit old.

    Maybe have a look at this one which is quite new: http://blog.aabech.no/archive/the-basics-of-unit-testing-umbraco-just-got-simpler/

    Regards David

Please Sign in or register to post replies

Write your reply to:

Draft