Skip to content

Make it optional for parameter names to match named generators#360

Open
mpdncrwd wants to merge 1 commit intoJetBrains:developfrom
mpdncrwd:master
Open

Make it optional for parameter names to match named generators#360
mpdncrwd wants to merge 1 commit intoJetBrains:developfrom
mpdncrwd:master

Conversation

@mpdncrwd
Copy link

Previously, if parameter names were enabled at compile-time, all parameters were required to match a named generator. This made including parameter names and using Lincheck with languages always enabling parameter names, like Scala, impractical. This PR:

  • Enables javaParameters when compiling tests in order to include parameter names - this makes all tests fail
  • Makes matching parameter names optional, such that tests work again
  • Adds a test that matching named generators on parameter names works

Previously, if parameter names were enabled at compile-time, all parameters were required to match a named generator. This made including parameter names, and using Lincheck with languages always enabling parameter names like Scala, impractical.

This instead makes it optional, such that if a named generator matches it is used but if none is found then we apply a default generator.

This also enables parameter names at compile time for tests in order to test this behavior.
@mpdncrwd mpdncrwd changed the title Make it optional for parameter names to match named generators. Make it optional for parameter names to match named generators Aug 15, 2024
@ndkoval ndkoval changed the base branch from master to develop August 15, 2024 12:24
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