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

Implement source location matching for weave messages in XML tests #220

Merged
merged 5 commits into from
Apr 13, 2024

Conversation

kriegaex
Copy link
Contributor

@kriegaex kriegaex commented Jan 29, 2023

WIP (work in progress).

@aclement: For now, I committed the solution with extended output via ISourceLocations, see also #218 (comment). In order for this to work, I had to adjust several tests expecting an exact line-by-line console output instead of selectively matching on weave messages. If I would change this to not passing through source locations but rather directly using file names and lines, I could revert the separate commit updating the expected test outputs, because then the change would be transparent, but also contain less specific information, both internally and on the console.

Closes #218.

@kriegaex kriegaex added the enhancement New feature or request label Jan 29, 2023
@kriegaex kriegaex self-assigned this Jan 29, 2023
@kriegaex kriegaex linked an issue Jan 29, 2023 that may be closed by this pull request
@kriegaex kriegaex requested a review from aclement January 29, 2023 17:06
WIP (work in progress).

Closes #218.

Signed-off-by: Alexander Kriegisch <[email protected]>
Remove leading "weaveInfo", add missing "see also:" to weave messages.

Relates to #218.

Signed-off-by: Alexander Kriegisch <[email protected]>
@kriegaex kriegaex force-pushed the gh-218 branch 2 times, most recently from 5efe9dc to 9076beb Compare April 13, 2024 09:26
Signed-off-by: Alexander Kriegisch <[email protected]>
reference

Experimental code leading to undesired ripple effects elsewhere,
requiring more rework which now I do not feel inclined to invest to
perfect source file string representation for post-compile binary
classes and aspects.

Relates to #218.

Signed-off-by: Alexander Kriegisch <[email protected]>
Instead of creating dedicated ITs for #218, just use the new matching
capabilities like this for good measure:

<message kind="weave" aspectFile="MyAspect.java" aspectLine="8" .../>

Tests affected:
  - Ajc165Tests::testFunkyPointcut_pr272233_2
  - Bugs1920Tests::test_GitHub_214

Relates to #218.

Signed-off-by: Alexander Kriegisch <[email protected]>
@kriegaex kriegaex marked this pull request as ready for review April 13, 2024 10:37
@kriegaex kriegaex added this to the 1.9.22.1 milestone Apr 13, 2024
@kriegaex kriegaex merged commit c6e5f90 into master Apr 13, 2024
4 checks passed
@kriegaex kriegaex deleted the gh-218 branch April 13, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement source location matching for weave messages in XML tests
1 participant