Installed SpecFlow.Allure but on server it doesn't work

时间:2017-12-18 08:18:17

标签: c# gradle specflow allure .net-standard-2.0

I have a problem with SpecFlow Allure in local it works but on the server not. I have windows 2008 server and I using .tpl files for gradle. When I added to my tpl the same settings as on app.config `

@using (Html.BeginForm())
{
@Html.AntiForgeryToken()

<div class="form-horizontal">
    <h4>Program</h4>
    <hr />
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
    <div class="form-group">
        @Html.LabelFor(model => model.ProgramID, htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.ProgramID, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(model => model.ProgramID, "", new { @class = "text-danger" })
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.SerialNo, htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.SerialNo, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(model => model.SerialNo, "", new { @class = "text-danger" })
        </div>
    </div>

but my server showed this error:

 <plugins>    
    <add name="Allure" type="Runtime"/></plugins><stepAssemblies>
      <stepAssembly assembly="Allure.SpecFlowPlugin"/>
    </stepAssemblies>`

Ofc, if I removed from .tpl file information about Allure it works but my report is not created. Do you know any idea how to use it?

Cheers,

1 个答案:

答案 0 :(得分:0)

这不是关于Allure,而是关于.net标准2.0的支持。请确保您的Jenkins代理能够构建.net std 2.0项目。