tag:help.appveyor.com,2012-11-13:/discussions/problems/23249-run-unit-test-form-a-diferrent-project-under-the-same-solution-cAppVeyor: Discussion 2019-04-28T03:07:17Ztag:help.appveyor.com,2012-11-13:Comment/472078642019-04-25T16:56:50Z2019-04-25T16:56:50ZRun unit test form a diferrent project under the same solution (C#)<div><p>For mor info, after the build it's always saying this:</p>
<p>Test Files<br>
***.tests.dll System.ArgumentException: Illegal characters in path.<br>
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath) at NUnit.Engine.TestPackage..ctor(String filePath) at NUnit.Engine.TestPackage..ctor(IList`1 testFiles) at NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage(ConsoleOptions options) at NUnit.ConsoleRunner.ConsoleRunner.Execute() at NUnit.ConsoleRunner.Program.Main(String[] args) Command exited with code -100</p></div>Devian Appstag:help.appveyor.com,2012-11-13:Comment/472078642019-04-25T20:38:34Z2019-04-25T20:38:34ZRun unit test form a diferrent project under the same solution (C#)<div><p>Nunit cli does not support wild cards (<a href="https://github.com/nunit/docs/wiki/Console-Command-Line">https://github.com/nunit/docs/wiki/Console-Command-Line</a>).</p>
<p>Why not use auto test discovery as you already have in <code>test.assemblies:</code> field?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/472078642019-04-25T23:26:36Z2019-04-25T23:26:37ZRun unit test form a diferrent project under the same solution (C#)<div><p>Sorry for my lack of knowledge on this subject, but how can I do it?<br>
I was searching but I didn't find anything to do auto find test :(</p>
<p>Doing this doesn't run my unit tests</p>
<p>test:<br>
assemblies: - '***.tests.dll'</p>
<p>I need to put another more flag?</p></div>Devian Appstag:help.appveyor.com,2012-11-13:Comment/472078642019-04-26T14:24:15Z2019-04-26T14:24:15ZRun unit test form a diferrent project under the same solution (C#)<div><p>Ok what happens if you keep the original nunit3-console command but list each file you want to test?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/472078642019-04-26T14:30:52Z2019-04-26T14:30:53ZRun unit test form a diferrent project under the same solution (C#)<div><p>Do you have an example hot to define a given folder for a specific dll? I tried this too but I think that I was specified wrongly the path and nunit console doesn't search any test.<br>
Then I just specified the csproj but doing this some exception was raised.</p></div>Devian Appstag:help.appveyor.com,2012-11-13:Comment/472078642019-04-26T16:57:33Z2019-04-26T16:57:33ZRun unit test form a diferrent project under the same solution (C#)<div><p><a href="https://github.com/search?q=filename%3Aappveyor.yml+nunit3-console&type=Code">https://github.com/search?q=filename%3Aappveyor.yml+nunit3-console&...</a></p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/472078642019-04-27T11:40:30Z2019-04-27T11:40:31ZRun unit test form a diferrent project under the same solution (C#)<div><p>Thanks for the example, now my UT is running fine ;)<br>
You can close this ticket.</p></div>Devian Apps