Skip to content

Conversation

@zainab-ali
Copy link
Contributor

The RenameExpectToExpectSame scalafix rule rewrites expect(...) calls to expect.same, but doesn't to do the same for expect.all.

This changeset amends the rule to:

  • Apply to expect.all by rewriting equality assertions into expect.same(...).and(...) calls
  • Apply to === by rewriting it to expect.eql.

It also improves AddClueToExpect to add clues to negated statements and pattern matches.

@zainab-ali zainab-ali changed the title Add scalafix rule to rename expect.all to expect.same Modify RenameExpectToExpectSame scalafix rule to rewrite expect.all Nov 3, 2025
@zainab-ali zainab-ali changed the title Modify RenameExpectToExpectSame scalafix rule to rewrite expect.all Apply RenameExpectToExpectSame scalafix rule to expect.all Nov 3, 2025
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