NUnit.Framework.TestDetails is missing from NUnit 3.0

274 views
Skip to first unread message

FllaviX8

unread,
Mar 10, 2015, 12:40:42 PM3/10/15
to nunit-...@googlegroups.com
Hi all,
I am trying to upgrade one of my test projects from NUnit 2.6.3 to NUnit 3.0 but it looks like the new version does not support NUnit.Framework.TestDetails.
Any ideas how I can alternatively access test details like Method, FullName, Type etc?

Charlie Poole

unread,
Mar 10, 2015, 12:54:34 PM3/10/15
to NUnit-Discuss
TestDetails is part of the NUnit 2.6 implementation of
ActionAttributes. When a before or after action is called for a
particular test, the TestDetails for that test are passed to it. The
class is needed because the execution of actions takes place without
any reference to the framework, so it isn't possible to use the
framework test classes.

In NUnit 3.0, all execution takes place within the framework itself,
so we are able to pass a framework ITest reference to the actions.
This makes all info about the test potentially available.

That said, the implementation of ActionAttributes in 3.0 is not yet
complete - we're not even at Beta yet! There is an outstanding issue
that indicates the object passed to before and after actions may not
be correctly populated at the time we pass it. See
https://github.com/nunit/nunit/issues/318

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/d/optout.
Reply all
Reply to author
Forward
0 new messages