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: Submission instrumentation #151

Draft
wants to merge 48 commits into
base: master
Choose a base branch
from

Conversation

Hapstyx
Copy link
Member

@Hapstyx Hapstyx commented Nov 15, 2024

Adds a bytecode transformer which provides the following features:

  • Mapping submission classes and their members to solution classes for better testability
    • Can be forced with the @ForceSignature annotation
  • Invocation logging for methods and constructors
  • Method substitution, i.e., dynamically run arbitrary code instead of submission code
  • Access to original class, field and method / constructor headers

Roadmap:

  • Add more configuration options (similarity matching threshold, etc.)
  • Constructor substitution
  • Replace specific method calls project-wide (e.g., calls to methods in java.util.Random)
  • Add ClassLoader for regular JUnit runs

@Hapstyx Hapstyx self-assigned this Nov 15, 2024
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.

1 participant