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

test: clean duplicate test to avoid confusion #2930

Merged
merged 2 commits into from
Apr 10, 2019
Merged

Conversation

monperrus
Copy link
Collaborator

Copy link
Collaborator

@surli surli left a comment

Choose a reason for hiding this comment

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

I don't understand this PR: who is a clone of who? For me the test you deleted and the link you made point on the same resources.
Besides this resource is now referenced in our contributing rules (cf #2929).

Copy link
Collaborator

@surli surli left a comment

Choose a reason for hiding this comment

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

I don't understand this PR: who is a clone of who? For me the test you deleted and the link you made point on the same resources.
Besides this resource is now referenced in our contributing rules (cf #2929).

@monperrus
Copy link
Collaborator Author

spoon-decompiler/src/test/java/spoon/test/architecture/SpoonArchitectureEnforcerTest.java is a clone of src/test/java/spoon/test/architecture/SpoonArchitectureEnforcerTest.java

This PR deletes the former (and not the one from #2929)

@surli
Copy link
Collaborator

surli commented Apr 5, 2019

OK I haven't checked the module part. Right then.

@nharrand
Copy link
Collaborator

nharrand commented Apr 5, 2019

It is indeed a clone, but id does not run the test on the same module. I might did something wrong here, but the point is to enforce package declaration in spoon-bytecode in the same way it is enforce in spoon.

Correct me if I am wrong but Line 29 does not apply to ./src/main/java but to spoon-bytecode/src/main/java as test should not be executed from the same directory.

@surli
Copy link
Collaborator

surli commented Apr 10, 2019

It makes sense indeed in that case.
@nharrand would you add a comment on the class of spoon-decompiler/SpoonArchitectureEnforcer test so we don't have any doubt that this it exists on purpose there too.
Now what we could do is using Spoon inside our Maven build with some custom enforcer. So Spoon enforcing Spoon rules ;)

@monperrus
Copy link
Collaborator Author

monperrus commented Apr 10, 2019

I propose to rename it "DecompilerArchitectureTest"

@nharrand
Copy link
Collaborator

Renamed and commented!

@surli surli merged commit 97a3ab0 into master Apr 10, 2019
@surli surli deleted the monperrus-patch-3 branch April 10, 2019 12:33
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.

None yet

3 participants