I’m trying to execute custom tool with gradle exec task like this:
task specflowClassGeneration << {
exec { executable = “…\specflow\tools\specflow.exe” args = [“generateall”, “ABZ.ReportFactory.OfficeAddin.FunctionalTests.Excel\ABZ.ReportFactory.OfficeAddin.FunctionalTests.Excel.csproj”, “/force”] } }
But I’m getting this error:
Execution failed for task ‘:specflowClassGeneration’. > Could not find method …\specflow\tools\specflow.exe() for arguments [[generateall, ABZ.ReportFactory.OfficeAddin.FunctionalTests.Excel\ABZ.ReportFactory.OfficeAddin.FunctionalTests.Excel.csproj, /force]] on root project ‘ABZ ReportFactory Office Addin’.
When I type in command line this command it executes normally:
…\specflow\tools\specflow.exe generateall “ABZ.ReportFactory.OfficeAddin.FunctionalTest.Excel\ABZ.ReportFactory.OfficeAddin.FunctionalTest.Excel.csproj” /force
What am I doing wrong?