Comments (6)
Thanks for raising. Definitely an bug to be fixed.
In the meantime, a functional (but nasty) workaround is to have this line of code run before your test executes, e.g. in the @Before
or @BeforeClass
of a JUnit test:
Class.forName("com.youdevise.fbplugins.tdd4fb.DetectorRunner$Singleton");
The reason is that FindBugs needs to set up static state to initialise a BugAccumulator (yuk). Prodding the classloader to initialise DetectorRunner$Singleton
will trigger the initialisation.
This will be fixed to just work in the next release.
from test-driven-detectors4findbugs.
Oh, and thank you very much for raising the issue. Much appreciated.
from test-driven-detectors4findbugs.
Hi @paulur
This should be fixed now. Are you able to test the fix with a recent build? (removing the hack first of course)
from test-driven-detectors4findbugs.
Hey Graham,
Thanks for the update! I am traveling this week, but will try to see whether I could find sometime for reinstall the package. In any case, I'll get back to you by this Friday.
Thanks!
Paul
Sent from my iPhone
On Jul 14, 2013, at 10:07 AM, Graham Allan [email protected] wrote:
Hi @paulur
This should be fixed now. Are you able to test the fix with a recent build? (removing the hack first of course)
—
Reply to this email directly or view it on GitHub.
from test-driven-detectors4findbugs.
Tested. Works well. Thanks!
Paul
Sent from my iPhone
On Jul 15, 2013, at 10:13 PM, Paul [email protected] wrote:
Hey Graham,
Thanks for the update! I am traveling this week, but will try to see whether I could find sometime for reinstall the package. In any case, I'll get back to you by this Friday.
Thanks!
Paul
Sent from my iPhone
On Jul 14, 2013, at 10:07 AM, Graham Allan [email protected] wrote:
Hi @paulur
This should be fixed now. Are you able to test the fix with a recent build? (removing the hack first of course)
—
Reply to this email directly or view it on GitHub.
from test-driven-detectors4findbugs.
Great. I will release a new version soon.
from test-driven-detectors4findbugs.
Related Issues (17)
- findbugs 2.x HOT 7
- Test "createsFileSystemCodeBaseLocatorForEachJarPathGiven" is failed on Windows HOT 5
- Exception/error messages of DetectorAssert is not informative HOT 1
- missing XFactory interning in test driver HOT 4
- BugMatcher not propagated by Detector --> Detector2 delegation method HOT 2
- DetectorAssert usability problem for multiple matchers HOT 1
- DetectorAssert.addRegistrar(...) has no effect HOT 3
- Compatibility with Findbugs 3 HOT 3
- PluginDoesntContainMetadataException because the wrong findbugs.xml is found when looking for the core plugin HOT 3
- Using Java 8 lambdas as tested classes
- Make available from Maven Central HOT 3
- Possibly incorrect license listed HOT 1
- RuntimeException: Failed to setup FindBugs dependencies for testing caused by FileNotFoundException HOT 6
- jdk 1.6 HOT 1
- java.lang.ExceptionInitializerError will thrown many times HOT 3
- Support Detector2 interface HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-driven-detectors4findbugs.