gauge-java icon indicating copy to clipboard operation
gauge-java copied to clipboard

ClassInitializer definitions inside package_to_scan only should be considered

Open sswaroopgupta opened this issue 6 years ago • 2 comments

Actual behavior All ClassInitializers definitions are considered irrespective of package_to_scan configured.

Steps to replicate

  • Clone https://github.com/getgauge-examples/ioc-spring.git
  • Create one the package for all definitions
  • Move the definition of RegisterIOC in a different package initializer
  • Configure the package_to_scan one
  • Run the specs

The definition in package initializer RegisterIOC is considered. Only definitions in package_to_scan should be considered.

Version

Gauge version: 1.0.1.nightly-2018-06-27
Commit Hash: 0e3c1fc

Plugins
-------
java (0.6.9.nightly-2018-06-29)

Blocks #161

sswaroopgupta avatar Jul 02 '18 07:07 sswaroopgupta

Hi, Have you any progress with this issue? Could you suggest an workaround?

Thanks in advance!

Gauge version: 1.0.4.nightly-2018-12-25 Commit Hash: fe5e7da

Plugins

dotnet (0.1.0) html-report (4.0.6) java (0.7.0.nightly-2019-01-14) json-report (0.2.2) screenshot (0.0.1) spectacle (0.1.3)

0vid1u avatar Jan 14 '19 14:01 0vid1u

Please be cautious with this introduction, as this has impact on existing projects (similar to the multi-line step), which would break afterwards.

ajoecker avatar Jan 15 '19 05:01 ajoecker