Skip to content

chore: update version to 0.9.2 and enhance SmtpMockServer with receiv…#11

Merged
fupelaqu merged 2 commits into
mainfrom
release-r1
Jun 4, 2026
Merged

chore: update version to 0.9.2 and enhance SmtpMockServer with receiv…#11
fupelaqu merged 2 commits into
mainfrom
release-r1

Conversation

@fupelaqu
Copy link
Copy Markdown
Contributor

@fupelaqu fupelaqu commented Jun 4, 2026

…ed email tracking

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the project version to 0.9.2 and extends the testkit SMTP mock server utilities to make it easier for tests to inspect emails received by the in-process SMTP server.

Changes:

  • Bump build version from 0.9.1 → 0.9.2.
  • Add received: Seq[SmtpMessage] to SmtpMockServer for received-email tracking.
  • Broaden visibility of the SMTP mock server handle in NotificationTestKit to enable access from subclasses.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
testkit/src/main/scala/app/softnetwork/notification/scalatest/SmtpMockServer.scala Adds a received accessor returning received SMTP messages and required imports.
testkit/src/main/scala/app/softnetwork/notification/scalatest/NotificationTestKit.scala Changes SMTP mock server handle visibility to allow subclass access.
build.sbt Updates the project version to 0.9.2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.74%. Comparing base (b2f0fd5) to head (4144880).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...k/notification/scalatest/NotificationTestKit.scala 0.00% 1 Missing ⚠️
...etwork/notification/scalatest/SmtpMockServer.scala 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   71.51%   71.74%   +0.23%     
==========================================
  Files          61       61              
  Lines        1113     1115       +2     
  Branches      161      171      +10     
==========================================
+ Hits          796      800       +4     
+ Misses        317      315       -2     
Flag Coverage Δ
unittests 71.74% <0.00%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Changing smtpMockServer from private to a protected var exposes mutable internal state to subclasses (unlike the other mock server handles in this trait, which remain private). This makes it easier to accidentally reassign/clear the handle and break shutdown semantics. Prefer keeping the field private and exposing a minimal protected accessor for received emails (or an Option getter) instead.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@fupelaqu fupelaqu merged commit ab38284 into main Jun 4, 2026
3 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