U4-4832 - Create Test Helper suite and split current test project into 3 projects

Created by Shannon Deminick 07 May 2014, 02:07:27 Updated by Shannon Deminick 05 Jun 2015, 15:31:57

Relates to: U4-4566

Relates to: U4-4572

We'd really like to split our test project into 3: Unit Tests, Integration Tests and Umbraco Tests, the 3rd project would be a suite of test helpers that are used in both of our test projects that we can ship to developers to aid in testing.


Benjamin Howarth 10 Sep 2014, 09:18:12

I would like the Umbraco.Tests library to be available as a Nuget package, so I can install it straight into a unit test project (UmbracoCms.Core.Tests Nuget ID would be perfect) in Visual Studio without having to compile from source. Not sure if this warrants a separate issue or it should fall under this one.

Shannon Deminick 10 Sep 2014, 09:32:13

It falls under this one, no worries

Benjamin Howarth 10 Sep 2014, 09:36:48

Cool, also look at merging U4-4566 and U4-4572 into this as both related.

Kenn Jacobsen 22 May 2015, 06:03:31

@Shandem Any news on this? The lack of unit test support for surface and api controllers (without having to wire up a ton of Umbraco context, temporary databases and whatnot) is a continuous problem when trying to pitch Umbraco for certain larger scale projects.

Shannon Deminick 22 May 2015, 08:50:09

Yes this is all in place in 7.3. I've created another rest project based on 7.3 that is 100% controller unit and integration tested with self hosting, no database and all mocks.

Shannon Deminick 22 May 2015, 08:51:36

Oops sorry, thought this was a diff issue. 7.3 core doesn't need test helpers, you can just test things without a test helper library.

Priority: Normal

Type: Task

State: Open

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: