Как запустить тесты SpecFlow в OrchardCMS 1.4?
Шаги:
- Загрузите OrchardCMS с здесь .
- Запустите тест UsersFeature.ICanCreateANewUser ().(БЕЗ СОЗДАНИЯ ВСЕХ РЕШЕНИЙ!)
Результат сессий модульного тестирования - окно сеанса:
<code>...
error: Unable to locate <input> name SiteName in page html:
<html>
<head>
<title>A 'script' named 'jQuery' could not be found.</title>
<style>
...
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>A 'script' named 'jQuery' could not be found.</i> </h2></span>
...
<b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
<br><br>
<b> Exception Details: </b>System.InvalidOperationException: A 'script' named 'jQuery' could not be found.<br><br>
<b>Source Error:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
Line 259: throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, "A '{1}' named '{0}' could not be found.", settings.Name, settings.Type));
Line 260: }
<font color=red>Line 261: ExpandDependencies(resource, settings, allResources);
</font>Line 262: }
Line 263: requiredResources = (from DictionaryEntry entry in allResources
ИсточникФайл: ... OrchardCMS_1.4 \ src \ Orchard \ UI \ Resources \ ResourceManager.cs Строка: 261
Трассировка стека:
Это показано для каждого теста в SpecFlow, который я пробовал.