question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Not a TestFixture, but TestSuite" error when using un-namespaced SetupFixture

See original GitHub issue

Note: only occurs using the 4.0.0-alpha.1 release. 3.17 appears fine.

When using a SetupFixture outside of a namespace, the new DiscoveryConverter doesn’t handle the case where a test suite appears inside of the setupfixture node when reading tests from the assembly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
slonchocommented, Aug 13, 2020

It happens even if the SetupFixture is inside a namespace. Which is a bummer, as I badly need the new Explicit handling from this package.

1reaction
fabsenetcommented, Nov 18, 2020

had the same issue as @VoidPtr74 and the mentioned package by @OsirisTerje solved it, so even if I am not OP, I can confirm the solution is working! 👍 Thanks for your greak work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NUnit - Fails with TestFixtureSetUp method not allowed on ...
I'm using 2.6.2 version and the text is "TestFixtureSetUp method not allowed on a SetUpFixture". However I have answered my own question by ......
Read more >
SetUpFixture
SetUpFixture. This is the attribute that marks a class that contains the one-time setup or teardown methods for all the test fixtures in...
Read more >
Lifecycle of a test fixture
NUnit supports multiple SetUpFixture classes: in this case, setup methods will be executed starting from the most external namespace in and the teardown...
Read more >
Bugs with Parameterized Test Fixtures
I have made a parameterized test fixture in play mode which exactly the same with the demo code in nunit official documentation:TestFixture ......
Read more >
NUnit tests not run due to an exception in SetUp on a ...
I just tested it with NUnit 2.5.3 and it reported all of the test methods as Failed with a message of "Parent SetUp...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found