NickTomlin / protractor-flake

Rerun potentially flakey protractor tests before failing.
MIT License
80 stars 51 forks source link

add support for ts #78

Closed gustavomick closed 5 years ago

gustavomick commented 7 years ago

if sourcemap is enabled failures report files with ts file but spec must execute js file.

wswebcreation commented 7 years ago

@gustavomick

Can you clarify it more with an example?

gustavomick commented 7 years ago

Yeah np thnx. When parsing spec files to retry them. If sourcemap is enabled trace reporys myspec.ts and then prot flake tries aparently to execute that file instead of .js file.

wswebcreation commented 7 years ago

So if I understand you correctly, you are having *.spec.ts files, those are transpiled to *.spec.js files. The issues are logged to the console with *.spec.ts and passed on to protractor-flake to run them again. It can't find the files and it will run them all?

Can you also please provide:

Tnx in advance

westy92 commented 7 years ago

This may be helpful: https://www.npmjs.com/package/source-map-support

theandrewlane commented 6 years ago

Your .ts specs should be transpiled to .js... You might want to try jasmine-spec-reporter's customProcessors - you can read in the spec name, modify it (to match the transpiled js), and then write it to console. Either way, I don't think this is an issue with protractor-flake.

NickTomlin commented 5 years ago

I'm going to close this because I think Andrew is correct (and this issue is old).