Skip to content

Commit

Permalink
Ignore test cases which have ignore attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy-Ma committed Mar 21, 2017
1 parent 04e2d72 commit 04011ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Framework/Runner/AssemblyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ public static bool ReadTest(MethodInfo test, IFixtureData data, string workingDi

var testAttribs = CustomAttributeData.GetCustomAttributes(test);

var ignoreAttrib =
testAttribs.FirstOrDefault(x => x.Constructor.DeclaringType.Name == "IgnoreAttribute");
if (ignoreAttrib != null)
{
return false;
}

var testModelAttrib =
testAttribs.FirstOrDefault(x => x.Constructor.DeclaringType.Name == "TestModelAttribute");

Expand Down

0 comments on commit 04011ae

Please sign in to comment.