Skip to content

Add more tests#118

Merged
sachintha-lk merged 14 commits intodevfrom
add-tests
Nov 21, 2025
Merged

Add more tests#118
sachintha-lk merged 14 commits intodevfrom
add-tests

Conversation

@sachintha-lk
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 48%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
progress-monitoring-service (Java) 63%

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 21, 2025

Test Results Summary

 79 files  + 9   79 suites  +9   4m 9s ⏱️ +7s
648 tests +49  647 ✅ +49  1 💤 ±0  0 ❌ ±0 
676 runs  +49  675 ✅ +49  1 💤 ±0  0 ❌ ±0 

Results for commit eba82f9. ± Comparison against base commit d40d7f6.

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #80

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review


P1 Badge Fix duplicate PaymentServiceTest definitions

This test file now declares a second package block and reintroduces another PaymentServiceTest class starting here even though a class with the same name already ends at line 67. Java requires a single package declaration at the top of the file and only one top-level type with a given name per compilation unit, so javac will fail on this file before any tests can run. The new tests need to be merged into the existing class or moved to a separate file.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1 @@
package com.autonova.payments_billing_service.service;import com.autonova.payments_billing_service.config.StripeProperties;import com.autonova.payments_billing_service.domain.*;import com.autonova.payments_billing_service.messaging.DomainEventPublisher;import com.autonova.payments_billing_service.repository.PaymentRepository;import org.junit.jupiter.api.Test;import org.junit.jupiter.api.extension.ExtendWith;import org.mockito.InjectMocks;import org.mockito.Mock;import org.mockito.junit.jupiter.MockitoExtension;import java.util.Optional;import java.util.UUID;import static org.assertj.core.api.Assertions.assertThat;import static org.mockito.Mockito.when;@ExtendWith(MockitoExtension.class)class PaymentServiceProviderLookupTest { @Mock StripeProperties stripeProperties; @Mock PaymentRepository paymentRepository; @Mock DomainEventPublisher eventPublisher; @Mock InvoiceService invoiceService; @InjectMocks PaymentService paymentService; @Test void findLatestSuccessfulPaymentProvider_returnsEmpty_whenNone() { UUID invoiceId = UUID.randomUUID(); when(paymentRepository.findFirstByInvoice_IdAndStatusOrderByCreatedAtDesc(invoiceId, PaymentStatus.SUCCEEDED)) .thenReturn(Optional.empty()); assertThat(paymentService.findLatestSuccessfulPaymentProvider(invoiceId)).isEmpty(); } @Test void findLatestSuccessfulPaymentProvider_returnsProvider_whenPresent() { UUID invoiceId = UUID.randomUUID(); PaymentEntity entity = new PaymentEntity(); entity.setProvider(PaymentProvider.STRIPE); when(paymentRepository.findFirstByInvoice_IdAndStatusOrderByCreatedAtDesc(invoiceId, PaymentStatus.SUCCEEDED)) .thenReturn(Optional.of(entity)); assertThat(paymentService.findLatestSuccessfulPaymentProvider(invoiceId)).contains(PaymentProvider.STRIPE); }} No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Stub Stripe API key before injecting PaymentService

The new provider lookup test creates PaymentService via @InjectMocks without stubbing stripeProperties.getApiKey(). The PaymentService constructor immediately calls new StripeClient(stripeProperties.getApiKey()) (see PaymentService.java lines 33-44), so with the mock returning null the test will throw during construction rather than exercising findLatestSuccessfulPaymentProvider. Provide a dummy API key in setup (as done in other tests) to allow the service to be instantiated.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
progress-monitoring-service (Java) 63%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #81

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #82

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #83

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #84

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #85

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #86

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@sachintha-lk sachintha-lk changed the title Add tests Add more tests Nov 21, 2025
@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #87

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #88

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #89

@github-actions
Copy link
Copy Markdown

Integration Test Summary

Overall Results

Metric Count
Services with Integration Tests 4
Total Integration Tests 28
Passed 28
Failed 0

Integration Test Summary

Services with Integration Tests

✅ appointment-booking-service

  • Tests: 7
  • Failures: 0

✅ auth-service

  • Tests: 9
  • Failures: 0

✅ customer-service

  • Tests: 7
  • Failures: 0

✅ progress-monitoring-service

  • Tests: 5
  • Failures: 0

@github-actions
Copy link
Copy Markdown

Test Coverage Summary

Overall Coverage: 47%

Per Service Coverage

Service Coverage
analytics-service (Java) 25%
appointment-booking-service (Java) 31%
auth-service (Java) 66%
chatbot (Java) 42%
customer-service (Java) 59%
discovery-service (Java) 37%
dotnet-project-service (.NET) 39%
employee-dashboard-service (Java) 56%
gateway-service (Java) 37%
notification-service (Java) 67%
payments-billing-service (Java) 19%
progress-monitoring-service (Java) 63%
time-logging-service (Java) 73%

@github-actions
Copy link
Copy Markdown

📊 Comprehensive Test Report Generated

A detailed PDF report combining all test results and coverage metrics has been generated.

Available Formats:

  • 📄 PDF Report: Autonova-Backend-Test-Report.pdf
  • 🌐 HTML Report: Autonova-Backend-Test-Report.html
  • 📝 Markdown Source: comprehensive-report.md

Download: Check the workflow artifacts section to download the reports.

Workflow Run: #90

@sachintha-lk sachintha-lk merged commit 6a8c0a1 into dev Nov 21, 2025
34 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.

1 participant