lachlanmckee / timber-junit-rule Goto Github PK
View Code? Open in Web Editor NEWA highly configurable JUnit Rule that outputs Timber logs to standard output
License: MIT License
A highly configurable JUnit Rule that outputs Timber logs to standard output
License: MIT License
To further develop this project it must be brought up to date with the latest Android Studio tooling.
Currently the Timber JUnit rule will log for every single test, regardless of the outcome of the test.
This can be quite noisy, and unnecessary when unit tests are passing.
The enhancement to add will be to add a feature that buffer the logs and only outputs them if the unit test fails.
There appears to be a race condition in BufferedJUnitTimberTree.flushLogs
. If mLogMessageBuffer
is mutated by another thread while flushLogs is running, a ConcurrentModificationException
is thrown.
Unfortunately I don't have a precise example to repro but the defect seems straight forward and should be quite easy to fix by adding some synchronization.
Cheers!
Hi @LachlanMcKee ,
Thanks for this library, I had it in use on multiple apps.
Now with migrating to Junit 5 we need an other approach with a Junit 5 extension.
Are you planning to implement that in this library?
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.