Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm having issues trying to use the Umbraco unit tests to base my tests on. If I try to inherit from one of the base tests, e.g. Umbraco.Tests.Testing.UmbracoTestBase, I get the following exception:
System.TypeLoadException: 'Could not load type 'MyLibrary.Umbraco8Source.Tests.MyTest' from assembly 'Umbraco.Tests, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null'.'
It looks like this is because of the line:
Options = TestOptionAttributeBase.GetTestOptions<UmbracoTestAttribute>();
in UmbracoTestBase.Setup() that tries to load the test class from within the current Assembly (Umbraco.Tests)
It doesn't look like we can inherit from any of the V8 tests; is there any way to do this?
I just got that, I did try decorating my test class with
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)]
But still no joy. Now in v7 you have to ensure that the test was in namespace Umbraco.Tests because alot of umbraco internals had been marked as visible to Umbraco.Tests however in v8 does not look like that is the case.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted