Run Nunit3 Tests from text file

364 views
Skip to first unread message

pratik patil

unread,
Nov 24, 2016, 7:59:55 AM11/24/16
to NUnit-Discuss
I am getting Invalid argument exception while running nunit tests from text file

following is the command

nunit3-console /runlist:D:\Test.txt "path to DLL file"
nunit error.png

Rob Prouse

unread,
Nov 24, 2016, 8:54:08 AM11/24/16
to NUnit-Discuss
Pratik,

As the error says, runlist isn't a valid command line option in NUnit 3. Running --help at the command line shows you all valid options. Unfortunately there isn't an equivalent in the released version of NUnit although the next release allows you to add command line arguments including test assembly names to a file and include it with @testlist.txt.

Another option is to pass in an NUnit project file, https://github.com/nunit/docs/wiki/NUnit-Test-Projects

Rob



--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at https://groups.google.com/group/nunit-discuss.
For more options, visit https://groups.google.com/d/optout.



--

Charlie Poole

unread,
Nov 24, 2016, 1:33:15 PM11/24/16
to NUnit-Discuss
Actually, the option was changed to --testlist some time back. Please
be sure you are looking at the correct documentation.

On Thu, Nov 24, 2016 at 5:54 AM, Rob Prouse <r...@prouse.org> wrote:
> Pratik,
>
> As the error says, runlist isn't a valid command line option in NUnit 3.
> Running --help at the command line shows you all valid options.
> Unfortunately there isn't an equivalent in the released version of NUnit
> although the next release allows you to add command line arguments including
> test assembly names to a file and include it with @testlist.txt.
>
> Another option is to pass in an NUnit project file,
> https://github.com/nunit/docs/wiki/NUnit-Test-Projects
>
> Rob
>
>
>
> On 24 November 2016 at 07:53, pratik patil <prati...@gmail.com> wrote:
>>
>> I am getting Invalid argument exception while running nunit tests from
>> text file
>>
>> following is the command
>>
>> nunit3-console /runlist:D:\Test.txt "path to DLL file"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "NUnit-Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to nunit-discus...@googlegroups.com.
>> To post to this group, send email to nunit-...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/nunit-discuss.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
>
> Rob Prouse
>
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.

pratik patil

unread,
Nov 25, 2016, 1:37:52 AM11/25/16
to NUnit-Discuss
Thanks Charlie, --testlist is woking fine.
Reply all
Reply to author
Forward
0 new messages