gauge icon indicating copy to clipboard operation
gauge copied to clipboard

Unable to run tests on Gauge after version update

Open deepesh1511 opened this issue 1 year ago • 5 comments
trafficstars

Describe the bug

Unable to run tests on Gauge after version update. I have a gauge-java-maven project that works on old version of gauge-java library but doesn't work on the latest version.

Old gauge-java dependency version - 0.7.13 New gauge-java dependency version - 0.10.3

image

To Reproduce Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project
  2. Run the mvn test command
  3. No error displayed, tests are not initiated

Expected behavior Test execution should start.

logs

deepesh1511 avatar Feb 14 '24 21:02 deepesh1511

There's not enough information here to know what your problem is. What error do you get? What do the gauge logs say? what have you tried to fix the problem? Have you looked through the plugin release notes at https://github.com/getgauge/gauge-java/releases to see any possible reason for your issue?

chadlwilson avatar Feb 15 '24 01:02 chadlwilson

The tests are working with version 0.7.13 but when the version is updated to 0.10.3, the tests are not executed. There is not error or warning on the console neither on the logs. I have to manually terminate the run. There is literally no progress.

deepesh1511 avatar Feb 15 '24 01:02 deepesh1511

What does gauge.log say?

Are you using Java 11+?

And how are you running gauge itself? Via the gauge-maven-plugin?

chadlwilson avatar Feb 15 '24 02:02 chadlwilson

I am using Java 11. I tried to run the tests via both maven command and directly from spec file as well. In either case the response was same, the test execution didn’t start.

gauge maven plugin version is 1.6.1

I can get you the gauge.log tomorrow. From what I see there was no error as such.

deepesh1511 avatar Feb 15 '24 02:02 deepesh1511

Unfortunately as I hope you understand - without more information about what works/doesn't work or clear reproduction steps that you have validated without your own custom code, it's a bit harder to help.

You could try incrementally increasing different gauge-java plugin versions from 0.7.13 through to 0.10.3 via the versions at https://github.com/getgauge/gauge-java/releases to find the first version that "broke" things to narrow it down?

chadlwilson avatar Feb 15 '24 04:02 chadlwilson