Skip to content

test: add configuration loading test and convert string test#172

Merged
reddevilmidzy merged 1 commit intomainfrom
add-test-config
Jul 15, 2025
Merged

test: add configuration loading test and convert string test#172
reddevilmidzy merged 1 commit intomainfrom
add-test-config

Conversation

@reddevilmidzy
Copy link
Owner

♟️ What’s this PR about?

local configuration 불러오는 테스트와 환경이 문자열로 주어졌을 때 Enviroment struct로 변환하는 로직 테스트를 추가하였습니다. (빨리도 한다..ㅎ)

🔗 Related Issues / PRs

Copilot AI review requested due to automatic review settings July 15, 2025 06:26

This comment was marked as outdated.

@github-actions github-actions bot added this to the 5차 MVP 구현 milestone Jul 15, 2025
@reddevilmidzy reddevilmidzy requested a review from Copilot July 15, 2025 06:27
Copy link
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 adds unit tests for environment string conversion and local configuration loading, and ensures Environment can be compared in tests.

  • Derive PartialEq and Eq on the Environment enum to support equality assertions.
  • Add tests for Environment::as_str(), TryFrom<String> on Environment, and get_local_configuration().
Comments suppressed due to low confidence (1)

rook/src/configuration.rs:175

  • We have a test for loading local settings but no test for get_production_configuration. Adding a similar test for production configs will ensure both code paths are verified and improve overall coverage.
    fn test_get_local_configuration() -> Result<(), config::ConfigError> {

@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@reddevilmidzy
Copy link
Owner Author

음 왜 codecov comment에 커버리지를 퍼센테이지로 안알려주지 :(

@reddevilmidzy
Copy link
Owner Author

@codecov-ai-reviewer review

@codecov-ai

This comment has been minimized.

@codecov-ai
Copy link

codecov-ai bot commented Jul 15, 2025

Seer failed to run.

@reddevilmidzy reddevilmidzy merged commit bb0c1c2 into main Jul 15, 2025
7 checks passed
@reddevilmidzy reddevilmidzy deleted the add-test-config branch July 15, 2025 06:40
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