karate icon indicating copy to clipboard operation
karate copied to clipboard

com.intuit.karate.resource.ResourceUtils.findFeatureFiles, *.getResource are unable to find feature files using Windows paths

Open kirksl opened this issue 2 years ago • 3 comments

mac or linux

  1. open command prompt
  2. cd ~
  3. git clone https://github.com/karatelabs/karate-npm
  4. npm install
  5. npm run test "/Users//karate-npm/karate/httpbin.feature:3"
  6. notice feature file is found and test passes as reflected in attached image

windows

  1. open command prompt
  2. cd /d %userprofile%
  3. git clone https://github.com/karatelabs/karate-npm
  4. npm install
  5. npm run test "c:\Users<your profile name>\karate-npm\karate\httpbin.feature:3"
  6. notice feature file is not found and test fails as reflected in attached image

mac windows

kirksl avatar May 17 '22 20:05 kirksl

tagging as help wanted - a good opportunity for those who want to get started with contributing to open-source / karate

ptrthomas avatar May 18 '22 04:05 ptrthomas

I have no option but to "guess" a fix for this. if anyone can test, that'll be great

ptrthomas avatar Aug 05 '22 14:08 ptrthomas

It works on Windows! Thanks @ptrthomas and @kirksl !

2022-08-17_18h38_41

charlyautomatiza avatar Aug 17 '22 21:08 charlyautomatiza

1.3.0 released

ptrthomas avatar Nov 02 '22 17:11 ptrthomas