We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccd6225 + e24e551 commit f39821bCopy full SHA for f39821b
RetailCoder.VBE/UnitTesting/TestEngine.cs
@@ -66,8 +66,11 @@ public void Run(IEnumerable<TestMethod> tests)
66
var testInitialize = module.Key.FindTestInitializeMethods(_state).ToList();
67
var testCleanup = module.Key.FindTestCleanupMethods(_state).ToList();
68
69
+ var moduleTestMethods = testMethods
70
+ .Where(test => test.QualifiedMemberName.QualifiedModuleName.ComponentName == module.Key.ComponentName);
71
+
72
Run(module.Key.FindModuleInitializeMethods(_state));
- foreach (var test in testMethods)
73
+ foreach (var test in moduleTestMethods)
74
{
75
// no need to run setup/teardown for ignored tests
76
if (test.Declaration.Annotations.Any(a => a.AnnotationType == AnnotationType.IgnoreTest))
0 commit comments