Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 수행 시 수행 시간을 측정하는 TestExecutionListener #58

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

can019
Copy link
Owner

@can019 can019 commented Aug 1, 2024

✨ New features

Test 수행 시 시간 측정 후 csv export하는 TestExecutionListener

  • TotalTestTimeExecutionListener : 총 수행 시간 측정
  • BasicTestTimeExecutionListener: 각 method마다 자동으로 측정 (Non-thread-safe)
  • ParalleTestTimeExecutionListener: 각 method마다 자동으로 측정 (Thread-safe)
    • parallel 가능
    • @RepeatedTest + parallel은 불가
      • 위 경우 복잡하기 때문에 각 Test class에서 측정, report하는 것을 추천
      • Example

적용 방법

@TestExecutionListeners(value = {TotalTestTimeExecutionListener},
       mergeMode = TestExecutionListeners.MergeMode.MERGE_WITH_DEFAULTS)

📝 Docs

README.md Project 특징에 TestExecutionListener 추가

- TotalTestTimeExecutionListener : 총 수행 시간 측정
- BasicTestTimeExecutionListener: 각 method마다 자동으로 측정 (Non-thread-safe)
- ParalleTestTimeExecutionListener: 각 method마다 자동으로 측정 (Thread-safe)
   - parallel 가능
   - `@RepeatedTest` + parallel은 불가
@can019 can019 added the 🛠️ Develop setting 개발 세팅 label Aug 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

Unit test

25 tests   25 ✅  2s ⏱️
10 suites   0 💤
10 files     0 ❌

Results for commit 3b9a115.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Aug 1, 2024

Integration test

21 tests   20 ✅  4s ⏱️
11 suites   1 💤
11 files     0 ❌

Results for commit 3b9a115.

♻️ This comment has been updated with latest results.

@can019 can019 changed the title Test 수행 시 수행 시간을 측정하는 test execution listener Test 수행 시 수행 시간을 측정하는 TestExecutionListener Aug 1, 2024
Copy link

sonarcloud bot commented Aug 1, 2024

@can019 can019 merged commit 76bdd25 into develop Aug 1, 2024
8 checks passed
@can019 can019 deleted the feature/test-listener branch August 1, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant