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

feat: add test pattern for main-method (#75) #75

Merged
merged 1 commit into from
Mar 6, 2024
Merged

feat: add test pattern for main-method (#75) #75

merged 1 commit into from
Mar 6, 2024

Conversation

tkrop
Copy link
Owner

@tkrop tkrop commented Mar 6, 2024

This pull request adds a new out-of-the-box test pattern that allows to test main-methods using os.Exit to terminate. This is a particular tricky test pattern, since it requires to execute the test in a separate process. Since this is a new feature, the pull request bumps the version to make the feature available.

Signed-off-by: Tronje Krop <tronje.krop@zalando.de>
@tkrop tkrop added the enhancement New feature or request label Mar 6, 2024
@tkrop tkrop self-assigned this Mar 6, 2024
@tkrop tkrop merged commit 810efb7 into main Mar 6, 2024
7 of 8 checks passed
@tkrop tkrop deleted the test-pattern branch March 6, 2024 16:57
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8175766196

Details

  • 0 of 20 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.1%) to 98.917%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/pattern.go 0 20 0.0%
Totals Coverage Status
Change from base Build 8175469996: -1.1%
Covered Lines: 1826
Relevant Lines: 1846

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants