Data-driven TestFixture

120 wyświetleń
Przejdź do pierwszej nieodczytanej wiadomości

Edward

nieprzeczytany,
8 sty 2010, 02:51:428.01.2010
do NUnit-Discuss
Hi,

I have hierarchy like data-driven test cases that’s 3 levels deep.
Currently the TestFixture can only be instantiated only a constant
number of times. How can I parameterize the TestFixture based on
source input, same like the TestCaseSource attribute?

I am sorry if it has been discussed before. I am new to NUnit and
couldn’t find what I am looking for anywhere.

Thank you very much for your help.

Best regards,
Edward

Charlie Poole

nieprzeczytany,
8 sty 2010, 11:01:078.01.2010
do nunit-...@googlegroups.com
Hi Edward,

This sounds like a good idea for a new feature. Parameterized test
fixtures were developed as an experiment and the features do not
yet match what you can get for test methods. I'd like to see us
unify the model for providing data to fixtures and methods.

It would be great if you would submit a request for this idea,
adding as much detail and examples of how it might work as you
can. You can do that in the context of a bug report at
http://bugs.launchpad.net/nunit-3.0 - use tag 'feature'.

If you really feel like putting in some effort, you could add
a specification to the wiki. Contact me offline about gaining
write access to the specification area if you're interested.

Charlie

Edward

nieprzeczytany,
10 sty 2010, 20:32:0510.01.2010
do NUnit-Discuss
Thank you very much Charlie.

Submited, https://bugs.launchpad.net/nunit-3.0/+bug/505700

Best regards,
Edward

On Jan 9, 3:01 am, "Charlie Poole" <char...@nunit.com> wrote:
> Hi Edward,
>
> This sounds like a good idea for a new feature. Parameterized test
> fixtures were developed as an experiment and the features do not
> yet match what you can get for test methods. I'd like to see us
> unify the model for providing data to fixtures and methods.
>
> It would be great if you would submit a request for this idea,
> adding as much detail and examples of how it might work as you

> can. You can do that in the context of a bug report athttp://bugs.launchpad.net/nunit-3.0- use tag 'feature'.

Dalibor Aleksov

nieprzeczytany,
14 sty 2014, 06:40:5014.01.2014
do nunit-...@googlegroups.com
Hi guys, any updates on this?

I'm trying to have TestFixture parametrized from data source like .json files etc... so it would be really nice to have this feature in framework, or at least provide an API for extending...

Charlie Poole

nieprzeczytany,
14 sty 2014, 14:16:4214.01.2014
do nunit-...@googlegroups.com
This was submitted as a feature request and is planned for NUnit 3.0.
See https://github.com/nunit/nunit-framework/issues/2

Charlie
> --
> 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 http://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

Dalibor Aleksov

nieprzeczytany,
20 sty 2014, 11:21:0920.01.2014
do nunit-...@googlegroups.com
Thanks a lot Charlie for the clarification.
Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0