This is a migrated thread and some comments may be shown as answers.

Detection of auto-generated NUnit tests in Unit test Window using SpecFlow

4 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
DenisCL
Top achievements
Rank 1
DenisCL asked on 28 Jul 2010, 01:36 PM
Hi,

We are using SpecFlow as our BDD framework.
It integrates nicely with NUnit as it generates NUnit tests.

However, the generated tests contains attributes in the form of:
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.TestFixtureAttribute()]

Instead of the more generally used:
[Test]
[TestFixture]

This has the consequence of JustCode's Unit test Window not recognizing these as unit tests.
By manually replacing the attributes, it works, but since this is auto-generated code, we can't do that.

Are there any plans to make it work with the full names of the attributes?

Thanks,
DenisCL

4 Answers, 1 is accepted

Sort by
0
Accepted
Deyan Varchev
Telerik team
answered on 28 Jul 2010, 01:39 PM
Hi Denis,

Thanks for reporting this. You rightly spotted that JustCode is not recognizing this correctly. We've identified the problem and this is already fix in your code base. The fix will be available in our next internal build and the service pack that is to be released in a view weeks.

Kind regards,
Deyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
DenisCL
Top achievements
Rank 1
answered on 28 Jul 2010, 01:40 PM
Hi,

Thanks for this quick answer!
Glad to hear it will be fixed.

Cheers,
DenisCL
0
DenisCL
Top achievements
Rank 1
answered on 28 Jul 2010, 04:52 PM
FYI,

The same goes for MSTest unit tests.

Regards,
DenisCL
0
Deyan Varchev
Telerik team
answered on 29 Jul 2010, 03:17 PM
Hello Denis,

Yes. There is a problem in the same scenario with all unit testing frameworks. The fix is applied for all of them.

Best wishes,
Deyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
DenisCL
Top achievements
Rank 1
Answers by
Deyan Varchev
Telerik team
DenisCL
Top achievements
Rank 1
Share this question
or