0
Good afternoon!
I’m trying to set up Enkins to check my tests, but it’s a mistake. I imagine you’re doing something stupid that I don’t understand, could help me?
My Windows Command Settings:
""C: tools bin net35 nunit3-console.exe" "D: TARGETMP projects Jenkins-Poc project_bytebankteste bin Debug netcoreapp2.1 Bytebankteste.dll" Bytebankteste.dll" /xml=nunit-result.xml"
And the log error is this:
Nunit Console Runner 3.10.0 (.NET 2.0) Copyright (c) 2019 Charlie Poole, Rob Prouse Friday, July 19, 2019 16:27:28
Runtime Environment OS Version: Microsoft Windows NT 10.0.17134.0 CLR Version: 4.0.30319.42000
Test Files D: TARGETMP Jenkins-Poc project_bytebanktest bin Debug netcoreapp2.1 Bytebanktest.dll Bytebankteste.dll /xml=nunit-result.xml
Errors, Failures and Warnings
1) Error : D: Projects TARGETMP Jenkins-Poc project_bytebankteste bin Debug netcoreapp2.1 Bytebankteste.dll Nunit.Engine.Nunitengineexception : An Exception occurred in the driver while loading tests. ----> System.IO.Filenotfoundexception : It was not possible to load file or Assembly 'nunit.framework, Version=3.10.1.0, Culture=neutral, Publickeytoken=2638cd05610744eb' or one of its dependencies. The system cannot find the specified file. --Nunitengineexception An Exception occurred in the driver while loading tests.
Server stack trace: em NUnit.Engine.Runners.DirectTestRunner.LoadDriver(IFrameworkDriver driver, String testFile, TestPackage subPackage) na C:\src\nunit\nunit-console\src\NUnitEngine\nunit.engine\Runners\DirectTestRunner.cs:linha 168 in Nunit.Engine.Runners.DirectTestRunner.Loadpackage() in C: src nunit nunit-console src Nunitengine nunit.engine Runners Directtestrunner.Cs:line 154 in Nunit.Engine.Runners.DirectTestRunner.Ensurepackageisloaded() in C: src nunit nunit-console src Nunitengine nunit.engine Runners Directtestrunner.Cs:line 268 in Nunit.Engine.Runners.DirectTestRunner.Runtests(Itesteventlistener Listener, Testfilter filter) in C: src nunit nunit-console src Nunitengine nunit.engine Runners Directtestrunner.Cs:line 212 System.Runtime.Remoting.Messaging.Stackbuildersink. _Privateprocessmessage(Intptr Md, Object[] args, Object server, Object[]& outArgs) in System.Runtime.Remoting.Messaging.Stackbuildersink.Syncprocessmessage(Imessage msg)
Exception rethrown at [0]: em System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) in System.Runtime.Remoting.Proxies.Realproxy.Privateinvoke(Messagedata& msgData, Int32 type) in Nunit.Engine.Itestenginerunner.Run(Itesteventlistener Listener, Testfilter filter filter)
in Nunit.Engine.Runners.ProcessRunner.Runtests(Itesteventlistener Listener, Testfilter filter) in C: src nunit nunit-console src Nunitengine nunit.engine Runners Processrunner.Cs:line 170
Filenotfoundexception It was not possible to load file or Assembly 'nunit.framework, Version=3.10.1.0, Culture=neutral, Publickeytoken=2638cd05610744eb' or one of its dependencies. The system cannot find the specified file. in System.Reflection.Runtimeassembly. _nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) em System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) em System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) em System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) em System.AppDomain.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes) em System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes) em System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes) in Nunit.Engine.Drivers.Nunit3frameworkdriver.Createobject(String typename, Object[] args) in C: src nunit nunit-console src Nunitengine nunit.engine Drivers Nunit3frameworkdriver.Cs:line 171 in Nunit.Engine.Drivers.Nunit3frameworkdriver.Load(String testAssemblyPath, Idictionary`2 Settings) in C: src nunit-console src Nunitengine nunit.engine Drivers Nunit3frameworkdriver.Cs:line 84 em NUnit.Engine.Runners.DirectTestRunner.LoadDriver(IFrameworkDriver driver, String testFile, TestPackage subPackage) na C:\src\nunit\nunit-console\src\NUnitEngine\nunit.engine\Runners\DirectTestRunner.cs:linha 164
2) Invalid : C: Bytebankteste.dll xml=nunit-result.xml File not found: C: Bytebankteste.dll xml=nunit-result.xml
Test Run Summary Overall result: Failed Test Count: 0, Passed: 0, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0 Start time: 2019-07-19 19:27:29Z End time: 2019-07-19 19:27:32Z Duration: 3.298 Seconds
Results (nunit3) saved as Testresult.xml
C: Program Files (x86) Jenkins Workspace Test_msunit>Exit -100 Build step 'Run from Windows command' marked build as Failure Finished: FAILURE
Could someone help me?
Thank you!
Welcome on Superuser. The Language we use on Superuser is English, can you Please Translate your Question so that Everyone here can understand it?.
– Nordlys Jeger