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

Feature/100 html parser #124

Closed
wants to merge 36 commits into from
Closed

Feature/100 html parser #124

wants to merge 36 commits into from

Conversation

QW3RAT
Copy link
Contributor

@QW3RAT QW3RAT commented Dec 10, 2023

Added the parser and a rudimentary testing class for it also

…package "reporting" for better structuring of project.

Signed-off-by: QW3RAT <[email protected]>
…package "reporting" for better structuring of project.

Signed-off-by: QW3RAT <[email protected]>
…gic to extract the Result class used by PITest directly instead of XML file

Signed-off-by: QW3RAT <[email protected]>
Signed-off-by: QW3RAT <[email protected]>
Signed-off-by: QW3RAT <[email protected]>
# Conflicts:
#	pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/reporting/MyMutationResultListener.kt
#	pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/reporting/MyMutationResultListenerFactory.kt
#	pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/reporting/XMLParser.kt
#	pitmutationmate/src/main/resources/META-INF/services/org.pitest.mutationtest.MutationResultListenerFactory
@QW3RAT
Copy link
Contributor Author

QW3RAT commented Dec 10, 2023

Linting fails because of error in testfile i dont want to change, to be as close to the real reports we will work with as possible

Copy link
Contributor

@lfogarty98 lfogarty98 left a comment

Choose a reason for hiding this comment

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

Looks good to me, I like that there is now a data structure which captures both the current-scope results as well as the related package results.

A question though: how are you handling the "mutation-specific" results such as those handled by the XML parser? For instance, line number is important since this is required for displaying the color bars after a Pitest run, so I think we do need to be able to obtain this.

@lheimbs
Copy link
Contributor

lheimbs commented Dec 12, 2023

Linter fixes are merged. Please rebase to re-lint

lheimbs and others added 13 commits December 13, 2023 10:36
Signed-off-by: Lennart Heimbs <[email protected]>
* ContextMenuAction runs pitest on all classes of the file when clicked inside file tree structure.

Signed-off-by: brianneoberson <[email protected]>

* Comma seperate the classes

Signed-off-by: brianneoberson <[email protected]>

* Disable action if not clicked inside a class

Signed-off-by: brianneoberson <[email protected]>

* Adapt gutter marker for kotlin classes

Signed-off-by: brianneoberson <[email protected]>

* Adapt context menu action to work for kotlin files

Signed-off-by: brianneoberson <[email protected]>

* Remove println

Signed-off-by: brianneoberson <[email protected]>

* Fix lint

Signed-off-by: brianneoberson <[email protected]>

* Override actionupdatethread

Signed-off-by: brianneoberson <[email protected]>

* Replace println with logger.info

Signed-off-by: brianneoberson <[email protected]>

---------

Signed-off-by: brianneoberson <[email protected]>
Co-authored-by: Felix-012 <[email protected]>
Signed-off-by: Liam Fogarty <[email protected]>
Signed-off-by: Liam Fogarty <[email protected]>
timherzig and others added 9 commits December 13, 2023 10:36
* Add HoverAction class to handle mouse hover events

Signed-off-by: Tim Herzig <[email protected]>

* show message on selected line

bug: message shows when moving away from a position, not when "arriving"
Signed-off-by: Tim Herzig <[email protected]>

* Add hover action to show mutation results

Signed-off-by: Tim Herzig <[email protected]>

* remove unused imports and comments

Signed-off-by: Tim Herzig <[email protected]>

* lint correction

Signed-off-by: Tim Herzig <[email protected]>

* lint correction

Signed-off-by: Tim Herzig <[email protected]>

* kotlin conventions

Signed-off-by: Tim Herzig <[email protected]>

* lint correction

Signed-off-by: Tim Herzig <[email protected]>

* lint correction

Signed-off-by: Tim Herzig <[email protected]>

* add hover functionality while keeping click function

currently commented out so that it can be demonstrated.

Signed-off-by: Tim Herzig <[email protected]>

* comment TODO for collective choice

Signed-off-by: Tim Herzig <[email protected]>

---------

Signed-off-by: Tim Herzig <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
…package "reporting" for better structuring of project.

Signed-off-by: QW3RAT <[email protected]>
…gic to extract the Result class used by PITest directly instead of XML file

Signed-off-by: QW3RAT <[email protected]>
@QW3RAT
Copy link
Contributor Author

QW3RAT commented Dec 13, 2023

I now get linting errors in parrt of the programm where i didnt changed anything :(. I'll have a look into that

@lheimbs
Copy link
Contributor

lheimbs commented Dec 13, 2023

Just as an explanation: by merging all the previous changes made since you branched off of main you included all these files in this branches history. The linter takes all the changes that are included in this branch and subsequently it detects errors with files that have been added before we enabled the linter.

If you perform a rebase now on this branch like so:

git rebase origin/main

and fix the merge conflicts you would get rid of all the changes already contained in main and get a clean linter result.

In the meantime i'm closing this PR in favor of #134

@lheimbs lheimbs closed this Dec 13, 2023
@QW3RAT QW3RAT deleted the Feature/100-Html-Parser branch December 20, 2023 07:45
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.

6 participants