1

2 concerns mentioned below

  1. Unable to change report directory of karate html reports. I tried with below snippet by using both relative and absolute path of new dir.
 @testpathchange
     Scenario: Test report 
             * configure report = { dir: 'src/test/java' }
             * print "Hello Test"

I also added this in karate-config.js

karate.configure('report', { dir: 'src/test/java' });

but report dir didn't change

  1. [Updated] I noticed that for every run from ParalleRunner 'karate-summary.html' gets generated but when run using Junit5 it doesn't generate 'karate-summary.html', it only generate feature specific html enter image description here

Also, ParallelRunner doesn't generate cucumber.json file even if I use outputCucumberJson(true) in testParallel() method enter image description here

.outputCucumberJson(true)

enter image description here

Manish Arya
  • 113
  • 1
  • 7
  • @peter Could you please check my second point – Manish Arya Dec 30 '22 at 20:55
  • next time please keep questions focused. I don't understand your second point. as far as I know every time you run a test, you will get that file in the directory which is `karate-reports` by default. maybe it is a bug in karate, so please follow this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue – Peter Thomas Dec 31 '22 at 04:46
  • @PeterThomas Sure Peter, I will explore more and If I feel something looks as a bug will try to replicate and then raise an issue from above link. For now I have updated the question. – Manish Arya Jan 01 '23 at 17:16
  • I have added the issue here https://github.com/karatelabs/karate/issues/2230 @PeterThomas – Manish Arya Jan 01 '23 at 17:57
  • sorry, works for me – Peter Thomas Jan 01 '23 at 18:11
  • @PeterThomas Thanks I checked your comment in the issue. But file format is txt and azure pipeline task expects .json file as an input. I will check some workaround then. – Manish Arya Jan 01 '23 at 18:18
  • no, the format is JSON. this is working fine for many enterprise teams for years. see other answers: https://stackoverflow.com/search?q=%5Bkarate%5D+azure – Peter Thomas Jan 01 '23 at 18:56

0 Answers0