Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Build runner does not build Web application projects
alexnorcliffe
#1 Posted : Friday, September 2, 2011 5:48:16 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/2/2011(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 5 time(s) in 5 post(s)
We have an MVC3 web application project in the solution. It doesn't get listed in the solutions tree in NCrunch configuration (everything else does), and this probably explains why one of our test projects which references it cannot be built either - the NCrunch build fails citing missing namespaces due to the missing reference.

A way to manually override the detected projects would be great here.

As an experiment, I changed the reference in the tests project from a project-reference to a hard reference to the assembly, which fixed the NCrunch build, but I'll be damned if I know what's supposed to happen next... no tests appear to be detected despite three MSTest projects being built fine, and turning on all the 'passed tests' in the Tests window just shows all the library projects with green ticks next to them despite black dots appearing next to all files I open. Even the test projects have black dots next to them saying 'code not covered by tests'...
Remco
#2 Posted : Friday, September 2, 2011 6:37:00 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,140

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
I'm interested in why the MVC3 web app isn't showing in the solution list. Somehow the project must be configured or registered in a way that NCrunch doesn't recognise. Would you be able to use the 'Submit Bug Report' feature using the NCrunch menu when you have this happen to you? I'll have a look at the log file to try and find out what's going on.

The MSTest issue is something I can explain, and actually I owe you an apology for this one. The front page of this website had MS Test listed as a supported framework prematurely and accidentally in expectation of the 1.33b release due out in the next few days. 1.32b doesn't actually support MSTest. I've corrected the page to avoid misleading anyone else on this. Sorry for the trouble.
alexnorcliffe
#3 Posted : Friday, September 2, 2011 7:24:08 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/2/2011(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 5 time(s) in 5 post(s)
Thanks - no worries re MSTest, it just looked like a godsend in preparation for our alpha release. Looking forward to 1.33b!

Regarding the MVC3 app, I tried the 'submit bug report' and it fails ambiguously saying there was an error and that I should check my web connection. I then used said connection to come onto the forum ;)

Thanks again
p.s. The source for the app is at http://umbraco.codeplex.com, on the default branch - fairly complex and was hoping to use this tool eventually to improve test coverage dramatically :)
p.p.s. the source of the mvc3 csproj is:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="(- BROKEN LINK -)">
<PropertyGroup>
<GenerateResourceNeverLockTypeAssemblies>true</GenerateResourceNeverLockTypeAssemblies>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D17A89C5-54ED-49A4-B07A-14CBFA47E793}</ProjectGuid>
<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Umbraco.Cms.Web.UI</RootNamespace>
<AssemblyName>Umbraco.Cms.Web.UI</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>true</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoMapper">
<HintPath>..\..\..\Resources\References\AutoMapper\1.1\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="ClientDependency.Core">
<HintPath>..\..\..\Resources\References\ClientDependency\ClientDependency.Core.dll</HintPath>
</Reference>
<Reference Include="ClientDependency.Core.Mvc">
<HintPath>..\..\..\Resources\References\ClientDependency\ClientDependency.Core.Mvc.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
<HintPath>..\..\..\Resources\References\log4net\log4net.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Web.Mvc">
<HintPath>..\..\..\Resources\References\Microsoft.Web.Mvc\Microsoft.Web.Mvc.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=1.3.20419.9005, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.1.3.20419.9005\lib\net40\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="RouteDebugger">
<HintPath>..\..\packages\routedebugger.2.0.0.6\lib\net40\RouteDebugger.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web.Abstractions" />
<Reference Include="System.Web.Routing" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="TheFarm.Snapshot.Routing">
<HintPath>..\..\..\Resources\References\TheFARM\Snapshot\TheFarm.Snapshot.Routing.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\RunwayHomepageController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Models\InnerModel.cs" />
<Compile Include="Models\TestModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="App_Data\Umbraco\HiveConfig\empty.txt" />
<Content Include="App_Data\Umbraco\LocalizationEntries.xml">
<SubType>Designer</SubType>
</Content>
<Content Include="App_Data\Umbraco\LocalPackages\empty.txt" />
<Content Include="App_Data\Umbraco\Macros\empty.txt" />
<Content Include="App_Data\Umbraco\Media\empty.txt" />
<Content Include="Areas\Umbraco\Content\Images\arrow-left.gif" />
<Content Include="Areas\Umbraco\Content\Images\arrow-right.gif" />
<Content Include="Areas\Umbraco\Content\Images\list-item-orange.gif" />
<Content Include="Areas\Umbraco\Content\Images\seperator.gif" />
<Content Include="Areas\Umbraco\Scripts\KnockoutJs\knockout.extensions.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\DefaultDashboard.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\UserTypeEditor.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\CreateFileDialog.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.UI\TreePicker.js" />
<Content Include="Areas\Umbraco\Scripts\WebToolkit\webtoolkit.md5.js" />
<Content Include="App_Plugins\Core\Dashboards\Scripts\Dashboards.js" />
<Content Include="Views\Umbraco\Xslt\test.xslt" />
<Content Include="Areas\Install\Content\Images\bg-bhuiness-cl.gif" />
<Content Include="Areas\Install\Content\Images\bg-bhuiness-cr.gif" />
<Content Include="Areas\Install\Content\Images\bg-bhuiness.jpg" />
<Content Include="Areas\Install\Content\Images\bg-blog-cl.gif" />
<Content Include="Areas\Install\Content\Images\bg-blog-cr.gif" />
<Content Include="Areas\Install\Content\Images\bg-blog-repeat.jpg" />
<Content Include="Areas\Install\Content\Images\bg-blog.jpg" />
<Content Include="Areas\Install\Content\Images\bg-drop-b.png" />
<Content Include="Areas\Install\Content\Images\bg-drop-c.gif" />
<Content Include="Areas\Install\Content\Images\bg-drop-t.png" />
<Content Include="Areas\Install\Content\Images\bg-header.png" />
<Content Include="Areas\Install\Content\Images\bg-img-ie.png" />
<Content Include="Areas\Install\Content\Images\bg-img.png" />
<Content Include="Areas\Install\Content\Images\bg-inp-big.png" />
<Content Include="Areas\Install\Content\Images\bg-inp-error.png" />
<Content Include="Areas\Install\Content\Images\bg-inp.png" />
<Content Include="Areas\Install\Content\Images\bg-lightbox-b.png" />
<Content Include="Areas\Install\Content\Images\bg-lightbox-t.png" />
<Content Include="Areas\Install\Content\Images\bg-normal-cl.gif" />
<Content Include="Areas\Install\Content\Images\bg-normal-cr.gif" />
<Content Include="Areas\Install\Content\Images\bg-normal-repeat.jpg" />
<Content Include="Areas\Install\Content\Images\bg-normal.jpg" />
<Content Include="Areas\Install\Content\Images\bg-paging-h.png" />
<Content Include="Areas\Install\Content\Images\bg-paging.png" />
<Content Include="Areas\Install\Content\Images\bg-personal-cl.gif" />
<Content Include="Areas\Install\Content\Images\bg-personal-cr.gif" />
<Content Include="Areas\Install\Content\Images\bg-personal-repeat.jpg" />
<Content Include="Areas\Install\Content\Images\bg-personal.jpg" />
<Content Include="Areas\Install\Content\Images\bg-simple-cl.gif" />
<Content Include="Areas\Install\Content\Images\bg-simple-cr.gif" />
<Content Include="Areas\Install\Content\Images\bg-simple-repeat.jpg" />
<Content Include="Areas\Install\Content\Images\bg-simple.jpg" />
<Content Include="Areas\Install\Content\Images\btn-accept.png" />
<Content Include="Areas\Install\Content\Images\btn-back.png" />
<Content Include="Areas\Install\Content\Images\btn-blog.png" />
<Content Include="Areas\Install\Content\Images\btn-buisness-repeat.png" />
<Content Include="Areas\Install\Content\Images\btn-buisness.png" />
<Content Include="Areas\Install\Content\Images\btn-close.png" />
<Content Include="Areas\Install\Content\Images\btn-confirm.png" />
<Content Include="Areas\Install\Content\Images\btn-continue.png" />
<Content Include="Areas\Install\Content\Images\btn-create-hover.png" />
<Content Include="Areas\Install\Content\Images\btn-create.png" />
<Content Include="Areas\Install\Content\Images\btn-get.png" />
<Content Include="Areas\Install\Content\Images\btn-install-gal.png" />
<Content Include="Areas\Install\Content\Images\btn-install-hover.png" />
<Content Include="Areas\Install\Content\Images\btn-install.png" />
<Content Include="Areas\Install\Content\Images\btn-next.png" />
<Content Include="Areas\Install\Content\Images\btn-no-thanks.png" />
<Content Include="Areas\Install\Content\Images\btn-no.png" />
<Content Include="Areas\Install\Content\Images\btn-personal.png" />
<Content Include="Areas\Install\Content\Images\btn-prev.png" />
<Content Include="Areas\Install\Content\Images\btn-preview-web.png" />
<Content Include="Areas\Install\Content\Images\btn-preview.png" />
<Content Include="Areas\Install\Content\Images\btn-set.png" />
<Content Include="Areas\Install\Content\Images\btn-simple.png" />
<Content Include="Areas\Install\Content\Images\btn-yes.png" />
<Content Include="Areas\Install\Content\Images\bul1.png" />
<Content Include="Areas\Install\Content\Images\bul2.gif" />
<Content Include="Areas\Install\Content\Images\bul3.png" />
<Content Include="Areas\Install\Content\Images\bul4.gif" />
<Content Include="Areas\Install\Content\Images\ico-invalidaing.png" />
<Content Include="Areas\Install\Content\Images\ico-validaing.png" />
<Content Include="Areas\Install\Content\Images\img01.jpg" />
<Content Include="Areas\Install\Content\Images\img02.jpg" />
<Content Include="Areas\Install\Content\Images\img03.jpg" />
<Content Include="Areas\Install\Content\Images\img04.jpg" />
<Content Include="Areas\Install\Content\Images\img05.jpg" />
<Content Include="Areas\Install\Content\Images\img06.jpg" />
<Content Include="Areas\Install\Content\Images\img07.jpg" />
<Content Include="Areas\Install\Content\Images\img08.jpg" />
<Content Include="Areas\Install\Content\Images\img09.jpg" />
<Content Include="Areas\Install\Content\Images\img10.jpg" />
<Content Include="Areas\Install\Content\Images\img11.jpg" />
<Content Include="Areas\Install\Content\Images\loader.gif" />
<Content Include="Areas\Install\Content\Images\logo.gif" />
<Content Include="Areas\Install\Content\Images\none.gif" />
<Content Include="Areas\Install\Content\Images\pbar-ani.gif" />
<Content Include="Areas\Install\Content\Images\pbar.gif" />
<Content Include="Areas\Install\Content\Images\select-button.png" />
<Content Include="Areas\Install\Content\Images\select-center.png" />
<Content Include="Areas\Install\Content\Images\select-left-2.png" />
<Content Include="Areas\Install\Content\Images\select-left.png" />
<Content Include="Areas\Install\Content\Images\sep1.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_diagonals-thick_18_b81900_40x40.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_diagonals-thick_20_666666_40x40.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_flat_10_000000_40x100.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_glass_100_f6f6f6_1x400.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_glass_100_fdf5ce_1x400.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_glass_65_ffffff_1x400.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_gloss-wave_35_f6a828_500x100.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_highlight-soft_100_eeeeee_1x100.png" />
<Content Include="Areas\Install\Content\Images\ui-bg_highlight-soft_75_ffe45c_1x100.png" />
<Content Include="Areas\Install\Content\Images\ui-icons_222222_256x240.png" />
<Content Include="Areas\Install\Content\Images\ui-icons_228ef1_256x240.png" />
<Content Include="Areas\Install\Content\Images\ui-icons_ef8c08_256x240.png" />
<Content Include="Areas\Install\Content\Images\ui-icons_ffd27a_256x240.png" />
<Content Include="Areas\Install\Content\Images\ui-icons_ffffff_256x240.png" />
<Content Include="Areas\Install\Content\Styles\all.css" />
<Content Include="Areas\Install\Content\Styles\form.css" />
<Content Include="Areas\Install\Content\Styles\jquery-ui-1.8.6.custom.css" />
<Content Include="Areas\Install\Content\Styles\lt7.css" />
<Content Include="Areas\Install\Content\Styles\reset.css" />
<Content Include="Areas\Install\Scripts\InstallerUtility.js" />
<Content Include="Areas\Install\Scripts\ie-png.js" />
<Content Include="Areas\Install\Scripts\jquery.1.4.4.js" />
<Content Include="Areas\Install\Scripts\jquery.main.js" />
<Content Include="Areas\Install\Scripts\jquery.ui.selectmenu.js" />
<Content Include="Areas\Install\Scripts\passwordstrength.js" />
<Content Include="Areas\Umbraco\Content\Images\about.png" />
<Content Include="Areas\Umbraco\Content\Images\app-install.png" />
<Content Include="Areas\Umbraco\Content\Images\app-remove.png" />
<Content Include="Areas\Umbraco\Content\Images\AppIcons\system-info.png" />
<Content Include="Areas\Umbraco\Content\Images\AppIcons\tray-sprites.png" />
<Content Include="Areas\Umbraco\Content\Images\big-add.png" />
<Content Include="Areas\Umbraco\Content\Images\close.png" />
<Content Include="Areas\Umbraco\Content\Images\create.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\doc.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\doc2.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\doc3.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\doc4.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\doc5.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\image.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\developer.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\doc.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\docWithImage.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\folder.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\folder_media.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\member.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\memberGroup.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\members.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\template.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeThumbs\xml.png" />
<Content Include="Areas\Umbraco\Content\Images\gradient-bg.png" />
<Content Include="Areas\Umbraco\Content\Images\help.png" />
<Content Include="Areas\Umbraco\Content\Images\login-bg.png" />
<Content Include="Areas\Umbraco\Content\Images\logout.png" />
<Content Include="Areas\Umbraco\Content\Images\progressbar.gif" />
<Content Include="Areas\Umbraco\Content\Images\property-background.gif" />
<Content Include="Areas\Umbraco\Content\Images\publish.gif" />
<Content Include="Areas\Umbraco\Content\Images\save.gif" />
<Content Include="Areas\Umbraco\Content\Images\topGradient.gif" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\bin.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\bin_empty.png" />
<Content Include="Areas\Umbraco\Content\Images\DocTypeIcons\package.png" />
<Content Include="Areas\Umbraco\Content\Images\umbracoFavicon.ico" />
<Content Include="Areas\Umbraco\Content\Images\collapse.png" />
<Content Include="Areas\Umbraco\Content\Images\delete.png" />
<Content Include="Areas\Umbraco\Content\Images\expand.png" />
<Content Include="Areas\Umbraco\Content\Styles\Buttons.css" />
<Content Include="Areas\Umbraco\Content\Styles\Exception.css" />
<Content Include="Areas\Umbraco\Content\Styles\Login.css" />
<Content Include="Areas\Umbraco\Content\Styles\Dashboard.css" />
<Content Include="Areas\Umbraco\Content\Styles\Editor.css" />
<Content Include="Areas\Umbraco\Content\Styles\ericmeyer.reset.css" />
<EmbeddedResource Include="Areas\Umbraco\Content\Styles\Packaging.css" />
<Content Include="Areas\Umbraco\Content\Styles\Validation.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\codemirror.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\codemirror.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\clike\clike.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\clike\clike.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\clike\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\css\css.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\css\css.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\css\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\diff\diff.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\diff\diff.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\diff\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\haskell\haskell.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\haskell\haskell.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\haskell\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\htmlmixed\htmlmixed.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\htmlmixed\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\javascript\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\javascript\javascript.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\javascript\javascript.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\php\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\php\php.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\stex\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\stex\stex.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\stex\stex.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\xml\index.html" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\xml\xml.css" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\mode\xml\xml.js" />
<Content Include="Areas\Umbraco\Modules\CodeMirror-2.0\overlay.js" />
<Content Include="Areas\Umbraco\Modules\Notifications\images\error.png" />
<Content Include="Areas\Umbraco\Modules\Notifications\images\info.png" />
<Content Include="Areas\Umbraco\Modules\Notifications\images\success.png" />
<Content Include="Areas\Umbraco\Modules\Notifications\images\warning.png" />
<Content Include="Areas\Umbraco\Modules\Notifications\Notifications.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\alert.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\button.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\buttons.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\close.png" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\confirm.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\corners.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\horizontal.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\img\vertical.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\inlinepopups\skins\umbraco\window.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracoanchor\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracoanchor\js\umbracoanchor.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracocharmap\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracolink\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracolink\js\umbracolink.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\umbracostyles\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\content.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\dialog.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\buttons.png" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\items.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\menu_arrow.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\menu_check.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\progress.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\img\tabs.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\themes\advanced\skins\umbraco\ui.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\tiny_mce_popup.js" />
<Content Include="Areas\Umbraco\Scripts\jQuery\jquery.watermark.min.js" />
<EmbeddedResource Include="Areas\Umbraco\Scripts\Umbraco.Editors\AppRestarter.js" />
<EmbeddedResource Include="Areas\Umbraco\Scripts\Umbraco.Editors\PackagingInstaller.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\MacroEditor.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\StylesheetRuleEditor.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\ScriptEditor.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\SearchDialog.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\PublishDialog.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\SearchBox.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\SortDialog.js" />
<Content Include="Areas\Umbraco\Scripts\Umbraco.Editors\DocTypeInfo.js" />
<Content Include="Areas\Umbraco\Modules\jQueryUI\v4\jquery-ui-umbraco-v4.css" />
<Content Include="Areas\Umbraco\Content\Styles\Messaging.css" />
<Content Include="Areas\Umbraco\Content\Images\AppIcons\tray-sprites.css" />
<Content Include="Areas\Umbraco\Modules\CollapsePanel\CollapsePanel.css" />
<Content Include="Areas\Umbraco\Modules\CollapsePanel\CollapsePanel.js" />
<Content Include="Areas\Umbraco\Modules\CollapsePanel\Images\background.gif" />
<Content Include="Areas\Umbraco\Modules\DateTimePicker\datetimepicker.css" />
<Content Include="Areas\Umbraco\Modules\DateTimePicker\images\calSprite.png" />
<Content Include="Areas\Umbraco\Modules\jQueryUI\v4\images\ui-icons_666666_256x240.png" />
<Content Include="Areas\Umbraco\Modules\jQueryUI\v4\images\ui-icons_999999_256x240.png" />
<Content Include="Areas\Umbraco\Modules\DateTimePicker\jquery-ui-timepicker-addon.js" />
<Content Include="Areas\Umbraco\Modules\DateTimePicker\UmbracoDateTimePicker.js" />
<Content Include="Areas\Umbraco\Modules\Modal\Images\modal-gradient.gif" />
<Content Include="Areas\Umbraco\Modules\Modal\Images\overlay-background.gif" />
<Content Include="Areas\Umbraco\Modules\Modal\jqDnR.js" />
<Content Include="Areas\Umbraco\Modules\Modal\jqModal.css" />
<Content Include="Areas\Umbraco\Modules\Modal\jqModal.js" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_boxfooter_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_boxfooter_statusBar_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_boxfooter_statusBar_h2_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_boxhead_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\images\panel_boxhead_h2_bg.gif" />
<Content Include="Areas\Umbraco\Modules\Panel\style.css" />
<Content Include="Areas\Umbraco\Modules\Tags\jquery.tagsinput.css" />
<Content Include="Areas\Umbraco\Modules\Tags\jquery.tagsinput.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\jquery.tinymce.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\langs\en.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\license.txt" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\css\advhr.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\js\rule.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\langs\en_dlg.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advhr\rule.htm" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\css\advimage.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\image.htm" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\img\sample.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\js\image.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advimage\langs\en_dlg.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\css\advlink.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\js\advlink.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\langs\en_dlg.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlink\link.htm" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlist\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\advlist\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\autoresize\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\autoresize\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\autosave\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\autosave\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\autosave\langs\en.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\bbcode\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\bbcode\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\contextmenu\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\contextmenu\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\directionality\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\directionality\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\emotions.htm" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-cool.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-cry.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-embarassed.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-foot-in-mouth.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-frown.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-innocent.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-kiss.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-laughing.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-money-mouth.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-sealed.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-smile.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-surprised.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-tongue-out.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-undecided.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-wink.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\img\smiley-yell.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\js\emotions.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\emotions\langs\en_dlg.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\dialog.htm" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\editor_plugin.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\editor_plugin_src.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\img\example.gif" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\js\dialog.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\langs\en.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\example\langs\en_dlg.js" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\fullpage\css\fullpage.css" />
<Content Include="Areas\Umbraco\Modules\TinyMCE\plugins\fullpage\editor_plugin.js" />
<Content...
1 user thanked alexnorcliffe for this useful post.
Remco on 9/2/2011(UTC)
Remco
#4 Posted : Saturday, September 3, 2011 4:19:39 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,140

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for providing a link to the source code. I've been able to give the solution a good thrash with NCrunch and I can confirm that it works well with 1.33b.

You'll notice that when you grab and run through your solution with the new release (due to be pushed out on Monday), most of your tests will fail with configuration problems. This is due to an implicit dependency between many of Umbraco's test assemblies and the Web.config that seems to only be supplied by one of the assemblies in the test environment.

To provide the fastest possible feedback and minimise build times, by default NCrunch will artificially wire together test application domains by hooking up their assemblies from different workspaces on your hard drive. This means that the assembly containing the tests may not necessarily be in the same directory as the assembly responsible for serving up the Web.config file, and therefore the tests fail with configuration problems.

There are a few ways you can work around this. The easiest way is to turn on the 'CopyReferencedAssembliesToWorkspace' configuration setting for all of your test projects. Unfortunately this will increase the amount of building NCrunch needs to do and will degrade feedback times.

Another way could be to modify the FakeUmbracoApplicationContext constructor to locate the web.config file by deliberately querying the location of the assembly providing it .. i.e. Path.GetDirectoryName(typeof(FakeUmbracoApplicationContext).Assembly.Location).
alexnorcliffe
#5 Posted : Sunday, September 11, 2011 12:12:51 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/2/2011(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 5 time(s) in 5 post(s)
Legend - really good of you to take a look at the solution, thanks! I've been using NCrunch 1.33b and didn't realise you'd replied to this thread, I actually came back to say it's awesome and help you out with a couple more bug reports :)
In the meantime for those tests with the missing config files, I ended up doing something similar to your latter suggestion and referencing the file relatively direct into the Web App, rather than relying on the "linked file" project reference copying the file. Our previous method had worked fine with the R# test runner, but it was just a convenience thing to keep the test config in sync as we were constantly redesigning the config structure at first.
1 user thanked alexnorcliffe for this useful post.
Remco on 9/11/2011(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.805 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download