简体   繁体   English

Eclipse Java Cucumber调试-如何在Cucumber Maven项目中配置和运行调试?

[英]Eclipse Java Cucumber debug - how can I configure and run debug in cucumber maven project?

How can I configure Eclipse to run debug on a cucumber project? 如何配置Eclipse以在黄瓜项目上运行调试? I put breakpoint in given condition from specific "Step" java class and I have created maven build profile like as picture attachment but debugging doesn't work. 我从特定的“ Step” java类中将断点置于给定的条件下,并且已经创建了maven构建配置文件(如图片附件),但是调试不起作用。

在此处输入图片说明

Thanks! 谢谢!

You are running it by maven commond like: 您正在通过maven commond运行它,例如:

mvn clean install

But you need to run it using junit or testng. 但是您需要使用junit或testng运行它。

Put an debug point in your step defination and run the project as junit/testng in debug section 在步骤定义中放置一个调试点,并在调试部分以junit / testng的身份运行项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM