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

5 posts, 1 answers
  1. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 28 Jul 2010 Link to this post

    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
  2. Answer
    Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 28 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 28 Jul 2010 Link to this post

    Hi,

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

    Cheers,
    DenisCL
  5. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 28 Jul 2010 Link to this post

    FYI,

    The same goes for MSTest unit tests.

    Regards,
    DenisCL
  6. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 29 Jul 2010 Link to this post

    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
Back to Top
DevCraft banner