I was going to start a new thread, but I'll plug in here, to keep the discussion in one place. I have had the same problem, different solution and the patch is...
23768
jfuerth
Dec 14, 2011 11:11 pm
Hi everyone, I've created a custom Runner meant to help with performance and scalability testing. It lets you create tests like this: ...
23769
Georg
le_garcon_en...
Dec 15, 2011 10:45 am
Hi! Just my 2 cents: - an ant-script could still be used in maven (it has plugins for that purpose). It may need a bit of tinkering - I'm not very good in...
23770
Matthew Farwell
mjfarwell
Dec 15, 2011 3:12 pm
Salut, The best way would be to create your own RunListener (btw TestListener is JUnit3, RunListener is Junit4). Then, you can plug this into standard tools....
23771
Dawid Weiss
dawid.weiss@...
Dec 15, 2011 3:13 pm
I should probably also note for completeness that Google Caliper is specifically designed for micro-benchmarking (with or without parameterization): ...
23772
Dawid Weiss
dawid.weiss@...
Dec 15, 2011 3:13 pm
You may want to check out JUnitBenchmarks -- it does what I think you want to achieve: http://labs.carrotsearch.com/junit-benchmarks.html Dawid ... [Non-text...
23773
Jonathan Fuerth
jfuerth
Dec 15, 2011 4:54 pm
Thanks for the pointer, Dawid. I have to admit I didn't find JUnitBenchmarks in my searches. I went looking for something back in September and again earier...
23774
Jonathan Fuerth
jfuerth
Dec 15, 2011 4:55 pm
Thanks Matthew. I will try writing out the reports from a RunListener. If they can be registered by both the Ant and Maven plugins, that's pretty good. Eclipse...
23775
Marc Philipp
mphilipp1982
Dec 15, 2011 8:01 pm
... I think this method is intended to be used by other Eclipse plugins, I don't think there's an UI for that. You could wrap your custom listener in an...
23776
Jonathan Fuerth
jfuerth
Dec 15, 2011 11:38 pm
... Yes, I think I'd probably cheat and register the listener directly from within the runner. If every JUnit launcher needs its own custom configuration or...
23777
sschroev
Dec 18, 2011 1:22 pm
Hi Jonathan, Out of curiosity: have you considered implementing your framework extension as a TestRule instead of a Runner? Cheers, Stephan...
23778
Noel Yap
yap_noel
Dec 20, 2011 2:45 am
When there are no tests matching the Include/Exclude filters, Categories throws an InitializationError. Can this behavior be changed? IMO, if nothing matches...
23779
atul
atul_ingale001
Dec 27, 2011 3:50 pm
Hi, I have a test class implemented in JUnit framework. Can i use Mockito framework to improve the code coverage...
23780
Stefan Birkner
stefan.birkner
Dec 27, 2011 8:56 pm
You can use JUnit and Mockito together....
23781
bill.shannon@...
bs00011
Dec 27, 2011 8:57 pm
[This is a recording.] I'm on vacation Dec 21 - Jan 2. I'll be reading mail occasionally. Happy Holidays! Bill...
23782
atul
atul_ingale001
Dec 28, 2011 4:02 pm
hi friends, My application is in wicket and we use lots of wicket interfaces in our application and i am not able to cover the code in test as i am not able to...
23783
atul
atul_ingale001
Dec 28, 2011 4:02 pm
See, if we mock the object using junit how can i mock it again using Mockito in same class? i thought of using the @Before and @After but couldent succeed. do...
23784
David Saff
dsaff
Dec 28, 2011 6:45 pm
Atul, Have you tried any of the popular mocking frameworks like jMock, EasyMock or Mockito? What happens? David ... [Non-text portions of this message have...
23785
kristian@...
krosenvold
Jan 3, 2012 7:38 am
Hi, I maintain the junit provider for maven-surefire, and I'm looking into transitioning from a Junitcore+RunListener based approach to an approach based on...
23786
hkaipe
Jan 3, 2012 10:01 pm
Hi Kristian Do you really want a transition from RunListener? To an outside observer - a JUnit Runner "describes" its test-executions and reports their outcome...
23787
Matthew Farwell
mjfarwell
Jan 3, 2012 10:50 pm
Kristian, In reading your original mail, I was also confused as to what you wanted to achieve. Could you expand a little please? Thanks. Matthew Farwell. ... ...
23788
kristian@...
krosenvold
Jan 4, 2012 6:51 am
Sorry, I was doing just what I sometimes dislike of our own users ;) The real problem I want to solve is associating console output from a running thread to a...
23789
Georg
le_garcon_en...
Jan 4, 2012 7:52 pm
Dear Kristian, My first thought - and I hope not to sound arrogant - would be to - to remove the the output altogether (who reads it anyhow once the test is...
23790
Dawid Weiss
dawid.weiss@...
Jan 4, 2012 8:15 pm
Hi Kristian, We had a similar issue. I was debating for a longer while if it makes sense to run parallel tests within the same VM. In many situations this...
23791
kristian@...
krosenvold
Jan 5, 2012 11:36 am
maven-surefire now also supports concurrent forks, and they don't have any of the interaction problems you describe - as you know. Since surefire is an...
23792
kristian@...
krosenvold
Jan 5, 2012 11:42 am
Surefire is maven's default test-runner. It serves a bucketload of use-cases, some of which are *far* off from what I'd do in my own tests. If the user decides...
23793
Dawid Weiss
dawid.weiss@...
Jan 5, 2012 11:58 am
... I was thinking about ANT actually, not maven (surefire). I admit we also needed some extra control over suite allocation scheduling and more detailed...
23794
Dawid Weiss
dawid.weiss@...
Jan 5, 2012 11:58 am
Oh, I also didn't mention one more thing -- if you have tests that fork subthreads which in turn write to System.out/err then you will also need a smarter way...
23795
Esko Luontola
egeluontola
Jan 6, 2012 12:29 pm
I'm already working on something like that. I'm writing a new test runner called Jumi http://jumi.fi/ which will have native support for running tests in...
23796
Dawid Weiss
dawid.weiss@...
Jan 6, 2012 1:57 pm
You may want to look into RandomizedRunner/JUnit4 task -- it has most of the things you mentioned (synchronized i/o events with reporting, capturing runaway...