Category not part of project file

Asked by Peter Brightman

I have chosen a test dll with NUnit GUI and selected a certain category. Then i ran the test. After i have saved this to a NUnit Project File and reloaded it, the selected category was still remembered. However when i edit the Project File, i do not see the selected category. Why is this not part of the project file? Why can't i create a project file using NUnit GUI and afterwards use NUnit console runner by refering to the project file on the command line. If i'd do so, i would still need to pass a category extra on the commandline. I don't understand why this is not part of the project file.

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit Framework Edit question
Assignee:
No assignee Edit question
Solved by:
Peter Brightman
Solved:
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

The project file only holds such items as are permanently associated
with running a particular set of assemblies. Things that may change
from session to session are not stored there. In the case of
categories selected, this information is saved in the
<project>.visualstate.xml file stored in the same directory. However,
this file is only used by the gui, as its name would suggest.

It has been proposed that NUnit allow optional specification of
categories in the project file and it's on our issue list for NUnit
3.0. However, I don't think we will simply save the last used
categories automatically, since that would not work for most usage.
Most likely, you will have to use the project editor gui to explicitly
add the desired categories.

On Thu, Nov 7, 2013 at 8:11 AM, Peter Brightman
<email address hidden> wrote:
> New question #238844 on NUnit Framework:
> https://answers.launchpad.net/nunit-3.0/+question/238844
>
> I have chosen a test dll with NUnit GUI and selected a certain category. Then i ran the test. After i have saved this to a NUnit Project File and reloaded it, the selected category was still remembered. However when i edit the Project File, i do not see the selected category. Why is this not part of the project file? Why can't i create a project file using NUnit GUI and afterwards use NUnit console runner by refering to the project file on the command line. If i'd do so, i would still need to pass a category extra on the commandline. I don't understand why this is not part of the project file.
>
> --
> You received this question notification because you are a member of
> NUnit Core Developers, which is an answer contact for NUnit Framework.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~nunit-core
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~nunit-core
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Peter Brightman (4-peter) said :
#2

Thank you for the answer.