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

JUnit tests should fail when application logs error, or possibly warn #17

Open
binkley opened this issue Dec 19, 2016 · 2 comments
Open

Comments

@binkley
Copy link
Owner

binkley commented Dec 19, 2016

Narrative

AS Bob the QA
I WANT JUnit tests to fail when tested code logs ERROR or WARN
SO THAT the application does not run in production with known problems exposed through logging

Business context

  • Tracking down real issues in logs is challenging when they are filled with noise
  • Errors and warnings logged during development are strong smells, and may expose real issues that need more tests

Acceptance criteria

GIVEN JUnit is testing
WHEN application logs ERROR
THEN current test should fail

GIVEN JUnit is testing
WHEN application logs WARN
THEN current test should fail

@binkley
Copy link
Owner Author

binkley commented Dec 19, 2016

@binkley
Copy link
Owner Author

binkley commented Dec 19, 2016

Consider a replacement SLF4J logger factory. See http://stackoverflow.com/a/2653919.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant