Wednesday, March 6, 2013

Bookmark and Share

Every once in a while it happens to me that TestNG tests fail to launch in Eclipse when starting in debug mode (run mode works fine). The progress bar freezes at 57% and Eclipse indefinitely hangs.

Some googling brought me to to this bug in the TestNG issue tracker. As it seems, the issue is caused by a conflict between the TestNG version used as (Maven) dependency in the project under test and the TestNG version used by the TestNG Eclipse plug-in. People commented at the issue that it helped for them to create a new Eclipse workspace. As I wanted to avoid that, I had a look into the .metadata folder of my workspace, searching for things which might be the potential cause.

And indeed I stumbled upon the folder WORKSPACE_DIR/.metadata/.plugins/org.testng.eclipse/. After deleting this folder and restarting Eclipse, TestNG tests would launch in debug mode again as expected.

18 comments:

Sorencito said...

Tried IntelliJ? :-)

Gunnar Morling said...

Hi Sören,

Yes, maybe I should consider switching to IntelliJ. Actually I'm using it in parallel, but I still like the Eclipse editor a bit better.

Gunnar Morling said...

Hi Sören,

Yes, maybe I should consider switching to IntelliJ. Actually I'm using it in parallel, but I still like the Eclipse editor a bit better.

PeterVermont said...

Thank you for posting. I had this exact problem and your solution worked.

PeterVermont said...

I am on Windows and this solution may only be relevant to this OS.

I had this problem again more recently. I could no longer find an org.testng folder in the plugins folders. I did a search on entire system and found many testng files in user C:\Users\\AppData\Local\Temp. I then used the 'Disk Cleanup' tool to delete all temp files. This fixed the testng in eclipse debug mode hanging.

Paul Mallon said...

Five years later this is still relevant.
Thanks!

Pooja Rao said...

Namkeen Pouch Manufacturers
Rice Bags Manufacturers
Pouch Manufacturers

Pooja Rao said...

website designing company in Gurgaon
ppc services in gurgaon
PPC Expert For Technical Support

Unknown said...

Trialix Male Enhancement Cannabidiol, or CBD, is a chemical compound that's found within the cannabis plant. CBD, quick for cannabidiol, is a compound found in hemp plants. With just a few drops a day stated to supply a myriad of benefits, together with anxiety and irritation reduction , it is no marvel that our healthy counterparts stateside have discovered ways to incorporate the straightforward oil in all the pieces from jelly sweets to bath bombs. We accomplice with among the corporations that sell these products, which implies Healthline UK and our companions could receive a portion of revenues when you make a purchase using a link(s) above. Gdyby temperatura zabijala THC i CBD to olej RSO by byl nieskuteczny jak i maslo konopne. Hemp oil will not help cancer. Nonetheless, because of regulatory limitations here in the U.S. associated to growing and processing of hemp, the method for getting CBD oil merchandise to the buyer's doorstep is sort of a bit more complicated. Not like medical cannabis, CBD is legal in all 50 states. Not surprisingly, individuals with epilepsy face vital challenges - from the cost of healthcare to work limitations and social isolation. Not all studies show a possible for helpful results on ldl cholesterol because of using hempseed oil.
https://www.smore.com/czbha-trialix-male-enhancement-canada

InstaaCoders Technologies said...

InstaaCoders Technologies pvt. Ltd providing web design in Los Angeles,Website Development Company Los Angeles, Mobile App Development Company in Delhi services to companies and startups from Canada and USA.
web design company los angeles ca
Website Development Company Los Angeles
Mobile App Development Company in Delhi
Mobile App Development Services in Delhi

https://harrow-escorts.com said...

Your article made me very impressed. I enjoyed it, I would expect at your website, or more articles

Digital Planner said...

pouch manufacturers
wall putty bag manufacturers

Digital Planner said...

Bosch Fridge Repair in Noida
Godrej Fridge Repair in Noida
whirlpool Fridge Repair in Noida
videocon Fridge Repair in Noida
Samsung Fridge Repair in Noida
Lg Fridge Repair in Noida
Haier Fridge Repair in Noida

Digital Planner said...

Bosch Fridge Repair in Noida
Godrej Fridge Repair in Noida
whirlpool Fridge Repair in Noida
videocon Fridge Repair in Noida
Samsung Fridge Repair in Noida
Lg Fridge Repair in Noida
Haier Fridge Repair in Noida

Fuse Angular said...

thanks

shivani said...

A befuddling web diary I visit this blog, it's incredibly grand. Strangely, in this present blog's substance made motivation behind fact and sensible. The substance of information is instructive
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training

htop said...

thanks for sharing this informations
best hadoop training in chennai
best hadoop training in omr
hadoop training in sholinganallur
best java training in chennai
best python training in chennai
selenium training in chennai
selenium training in omr
selenium training in sholinganallur

Merlin Kristianti said...

Maka untuk menjadi pemenang yang cerdas, para penjudi harus pandai dalam menentukan keberuntungan. Hal ini bisa dilihat dari 5 kali permainan. Jika dalam 5 kali para penjudi kalah 3 kali
asikqq
http://dewaqqq.club/
http://sumoqq.today/
interqq
pionpoker
bandar ceme terpercaya
freebet tanpa deposit
paito warna
syair sgp