How to hide secret data present in karate-config.js getting shown in cucumber report.
See original GitHub issueWe have a requirement where one feature file needs to be called only once for whole project and we are calling it from karate-config.js but in cucumber report the secret values which are very sensitive are coming and we have to avoid that due to security reasons. How to fix it.
I am submitting a sample code where sample flow I have replicated with minimal code for you review.
Please use command mvn test -Dtest=ExamplesTest
to run the project and it will generate a cucumber report. In that report where a feature from karate-config.js is getting called before that all values from that file are getting displayed. We can’t remove code from karate-config.js as our this feature file needs to be called only once in whole project and we have around 43 feature files in this project.
sample.zip
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (17 by maintainers)
Top GitHub Comments
@Madiha20 thanks for the update
I’ll consider adding a new property to the
configure report
system for e.g something like this, soshowCallArg
will be a new option, and will be set tofalse
when* configure report = false
is set.1.2.0 released