Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Performance #87

Merged
merged 25 commits into from
May 14, 2016
Merged

Performance #87

merged 25 commits into from
May 14, 2016

Conversation

iordanis
Copy link
Member

Branch that contains chimprunner, which runs instrumentation-type tests and keeps timings.

Iordanis Giannakakis and others added 24 commits April 20, 2016 19:19
…ses. This can be replaced with the combination of package pattern and class pattern.
…defaults to configuration builder rather than callers, for consistency.
@iordanis
Copy link
Member Author

iordanis commented May 12, 2016

Closes #48.

AnnotationItem annotation) {
String testMethod = method.method.getMethodName().getStringValue();
String testClass = getClassName(classDefItem);
boolean ignored = isClassIgnored(annotationDirectoryItem) || isMethodIgnored(annotation);
Copy link
Contributor

Choose a reason for hiding this comment

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

This ignored boolean might be wrong, as the previous filter in convertClassToTestCaseEvents removes anything but TEST_ANNOTATION. That said, no ignore annotation can be present here.

I think we can relax the filter in the method convertClassToTestCaseEvents to something like:

.filter(annotation -> (TEST_ANNOTATION.equals(stringType(annotation))
                            || (IGNORE_ANNOTATION.equals(stringType(annotation)))))

to fix this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. I will add some unit tests to this class cause the dex data types is what confuses me. I think your recommendation would create multiple test cases for the same test though so it needs a bit thinking through.

@fpezzato
Copy link
Contributor

Amazing! I left just a couple of very minor notes in the PR (a possible small bug and a question)

Other than that: LGTM! 💯

@iordanis iordanis merged commit 0bf4fcd into master May 14, 2016
@iordanis iordanis deleted the performance branch May 14, 2016 20:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants