Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 70: isTest looks at superclass methods #97

Merged

Conversation

aledsage
Copy link
Contributor

  • classes with superclasses with test methods now detected as tests

@aledsage
Copy link
Contributor Author

Fix for #70

@aledsage
Copy link
Contributor Author

Ah, I just found type.newSupertypeHierarchy(null).getAllSuperclasses(). I'll refactor to use that instead. That will be much cleaner...

@aledsage
Copy link
Contributor Author

I've refactored to use type.newSupertypeHierarchy(null), and rebased. Ready for review.

@missedone
Copy link
Collaborator

@aledsafe let's revisit this PR, do you still have issue #70 with latest vesion of testng eclipse plugin. if so, could you update this PR so that we can have a look then
thanks

Classes with superclasses with test methods now detected as tests
@aledsage aledsage force-pushed the fix/issue70-infer-test-from-superclass branch from 72be17d to 6c499b8 Compare December 26, 2015 22:50
@aledsage
Copy link
Contributor Author

@missedone Thanks for looking at this! I confirmed this issue #70 was still an issue on master, and have re-applied my changes again master. PR is again ready for review.

}

private static boolean doIsTest(IType iType) {
ITestContent testContent = TypeParser.parseType(iType);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have a check if iType is abstract or not at the beginning of this method:

if (Flags.isAbstract(iType.getFlags())) {
  return false;
}

@aledsage
Copy link
Contributor Author

Thanks @missedone - added check for isAbstarct

missedone added a commit that referenced this pull request Dec 29, 2015
…rclass

Fix issue 70: isTest looks at superclass methods
@missedone missedone merged commit a95ce5c into testng-team:master Dec 29, 2015
@aledsage aledsage deleted the fix/issue70-infer-test-from-superclass branch January 29, 2016 00:25
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants