Skip to content

Conversation

@vivganes
Copy link
Contributor

@vivganes vivganes commented Aug 12, 2025

I am working on an adapter for python's mutation testing tools to mutation-testing-elements

During that I realized that we do not support python code highlighting

Copy link
Member

@hugo-vrijswijk hugo-vrijswijk left a comment

Choose a reason for hiding this comment

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

Nice! Could you add an example report as well? That should help with making sure everything looks okay

@bundlemon
Copy link

bundlemon bot commented Aug 12, 2025

BundleMon (elements)

Files updated (3)
Status Path Size Limits
index.js
290.42KB (+3.8KB +1.33%) -
index.cjs
215.6KB (+3.16KB +1.49%) -
mutation-test-elements.js
234.05KB (+3.16KB +1.37%) -

Total files change +10.12KB +1.39%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@vivganes
Copy link
Contributor Author

Nice! Could you add an example report as well? That should help with making sure everything looks okay

Thanks for the suggestion @hugo-vrijswijk !

I have added a python example that can be seen in the vite output

image image

@vivganes
Copy link
Contributor Author

@hugo-vrijswijk - In case you are interested, this is the new python adapter for mutation-testing-elements that @kirankashyap and I have created

https://pypi.org/project/cosmic-ray-to-mutation-elements-adapter/

Copy link
Member

@hugo-vrijswijk hugo-vrijswijk left a comment

Choose a reason for hiding this comment

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

Thanks! This looks great. I added a minor addition to use css variables for the fill color. That way, the file icon will have the appropriate dark/light color. I'll merge and release this when the pipeline finishes :)

@hugo-vrijswijk
Copy link
Member

Great to have the adapter for python! I should mention that although mutation-testing-elements is (mostly) made by Stryker people, but doesn't have much to do with it specifically. There's no Stryker branding or mentions in the report. It's just a standard for JSON schema

@hugo-vrijswijk hugo-vrijswijk enabled auto-merge (squash) August 13, 2025 14:17
@hugo-vrijswijk hugo-vrijswijk merged commit 88f7292 into stryker-mutator:master Aug 13, 2025
11 of 12 checks passed
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