igniteram / protractor-cucumber-typescript

e2e kickstarter test framework which consists of protractor, cucumber frameworks using typescript lang!
MIT License
196 stars 170 forks source link

npm test do not transpile the ts file , step mentioned "The above command would create an output folder named 'Typescript' and transpile the .ts files" not working #7

Closed chit786 closed 7 years ago

chit786 commented 7 years ago

Hi,

After folowing your steps I am getting following result ;

npm test > calls the script > protractor typescript/config/config.js but it do not transpile and create the folder Typescript.

Editor : Visual studio code Node version : 6.9.5 Npm version : 3.10.10 tsc -v : 2.2.1

Tried on windows VM. But no success. Seem like transpiler is not working.

chit786 commented 7 years ago

solved it!

Should do this before tsc, seem like tsc not running anymore when defined in scripts.

npm run tsc > generates the transpiled folder npm run test works just fine!!

good repo will try to add PR for better reports.

if you have any solution for html reports like mkolisnyk:cucumber-reporting plugin then let me know,

Thank you!

igniteram commented 7 years ago

@chit786 Glad it worked for you, I have been planning to integrate reports see issue https://github.com/igniteram/protractor-cucumber-typescript/issues/1 to this repo but not able to find time from my chore work activities. I would be more than happy if you could send a PR for this :+1: