getgauge/html-report

Environment is showing as default/dev in the html-report after run with dev.properties file

osandadeshan opened this issue · 4 comments

Expected behavior

Environment should be showing as dev after run with dev.properties file

Actual behavior

Environment is showing as default/dev after run with dev.properties file

Steps to reproduce

  1. Create gauge java maven project
  2. Create a sub folder "dev" inside env folder
  3. Create "dev.properties" file there.
  4. Copy and paste all the things in default.properties to dev.properties
  5. Run the project using maven command
    mvn test-compile gauge:execute -DspecsDir="specs/login.spec" -Denv="dev"
  6. Open html-report and check "Environment" label

Screenshot

image

Gauge version

Gauge version: 1.0.4
Commit Hash: 3a9a647

Plugins

flash (0.0.1)
html-report (4.0.6)
java (0.7.2.nightly-2019-03-07)
js (2.3.2)
json-report (0.2.2)
python (0.3.4)
screenshot (0.0.1)
spectacle (0.1.3)
xml-report (0.2.1)

Same issue is in json-report also.

This seems like an error while displaying the environments in html-report.
I notice that the right property file is picked up when --env flag is used but in html-report it shows default always.

Thanks for reporting we will be fixing it soon.

This issue has been verified and found fixed with the latest gauge version
Gauge version: 1.0.5.nightly-2019-04-22