Skip to content

Commit

Permalink
Merge pull request DynamoDS#67 from Randy-Ma/Revit2017
Browse files Browse the repository at this point in the history
Ignore test cases which have ignore attributes
  • Loading branch information
Randy-Ma authored Mar 21, 2017
2 parents 04e2d72 + 04011ae commit aa20e8d
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 aa20e8d

Please sign in to comment.