Proper usage of cucumber with typescript?












3















I was following a tutorial but the setup is really bad. Basically it uses typescript to convert .ts files to .js. So basically pollutes your whole source code with .js files around.



So as soon as you import your .ts file from source code, all dependencies are duplicated with a .js file.



Do you know how to do proper typescript cucumber tests?



A hacky solution: Copy all features and all files to another temp folder, run from there. I would expect cucumber to be a bit more mature than this, hence my question here?



Or change the configuration of cucumber to look in the build folder from ts.



Thank you



Why just using typescript won't work:



Code structure:




  • tests


    • a.feature

    • stepDefinitions.ts




Now you will compile the typescript and have this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • stepDefinitions.js






Now you can see that stepDefinitions.js has no idea where to find a.feature. If you run cucumber on the build/test folder it won't find any step feature to run... because well, they are in the tests folder. So the hacky way to fix it is to copy over the features files resulting this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • a.feature

      • stepDefinitions.js






Now it will work but is hacky, I don't like it.










share|improve this question

























  • The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

    – Marit
    Oct 30 '18 at 13:48











  • @Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

    – Totty.js
    Oct 31 '18 at 4:28











  • Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

    – Marit
    Oct 31 '18 at 13:12
















3















I was following a tutorial but the setup is really bad. Basically it uses typescript to convert .ts files to .js. So basically pollutes your whole source code with .js files around.



So as soon as you import your .ts file from source code, all dependencies are duplicated with a .js file.



Do you know how to do proper typescript cucumber tests?



A hacky solution: Copy all features and all files to another temp folder, run from there. I would expect cucumber to be a bit more mature than this, hence my question here?



Or change the configuration of cucumber to look in the build folder from ts.



Thank you



Why just using typescript won't work:



Code structure:




  • tests


    • a.feature

    • stepDefinitions.ts




Now you will compile the typescript and have this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • stepDefinitions.js






Now you can see that stepDefinitions.js has no idea where to find a.feature. If you run cucumber on the build/test folder it won't find any step feature to run... because well, they are in the tests folder. So the hacky way to fix it is to copy over the features files resulting this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • a.feature

      • stepDefinitions.js






Now it will work but is hacky, I don't like it.










share|improve this question

























  • The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

    – Marit
    Oct 30 '18 at 13:48











  • @Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

    – Totty.js
    Oct 31 '18 at 4:28











  • Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

    – Marit
    Oct 31 '18 at 13:12














3












3








3








I was following a tutorial but the setup is really bad. Basically it uses typescript to convert .ts files to .js. So basically pollutes your whole source code with .js files around.



So as soon as you import your .ts file from source code, all dependencies are duplicated with a .js file.



Do you know how to do proper typescript cucumber tests?



A hacky solution: Copy all features and all files to another temp folder, run from there. I would expect cucumber to be a bit more mature than this, hence my question here?



Or change the configuration of cucumber to look in the build folder from ts.



Thank you



Why just using typescript won't work:



Code structure:




  • tests


    • a.feature

    • stepDefinitions.ts




Now you will compile the typescript and have this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • stepDefinitions.js






Now you can see that stepDefinitions.js has no idea where to find a.feature. If you run cucumber on the build/test folder it won't find any step feature to run... because well, they are in the tests folder. So the hacky way to fix it is to copy over the features files resulting this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • a.feature

      • stepDefinitions.js






Now it will work but is hacky, I don't like it.










share|improve this question
















I was following a tutorial but the setup is really bad. Basically it uses typescript to convert .ts files to .js. So basically pollutes your whole source code with .js files around.



So as soon as you import your .ts file from source code, all dependencies are duplicated with a .js file.



Do you know how to do proper typescript cucumber tests?



A hacky solution: Copy all features and all files to another temp folder, run from there. I would expect cucumber to be a bit more mature than this, hence my question here?



Or change the configuration of cucumber to look in the build folder from ts.



Thank you



Why just using typescript won't work:



Code structure:




  • tests


    • a.feature

    • stepDefinitions.ts




Now you will compile the typescript and have this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • stepDefinitions.js






Now you can see that stepDefinitions.js has no idea where to find a.feature. If you run cucumber on the build/test folder it won't find any step feature to run... because well, they are in the tests folder. So the hacky way to fix it is to copy over the features files resulting this structure:




  • tests


    • a.feature

    • stepDefinitions.ts



  • build


    • tests


      • a.feature

      • stepDefinitions.js






Now it will work but is hacky, I don't like it.







typescript cucumber cucumberjs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 8:37







Totty.js

















asked Oct 23 '18 at 2:17









Totty.jsTotty.js

6,9161678143




6,9161678143













  • The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

    – Marit
    Oct 30 '18 at 13:48











  • @Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

    – Totty.js
    Oct 31 '18 at 4:28











  • Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

    – Marit
    Oct 31 '18 at 13:12



















  • The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

    – Marit
    Oct 30 '18 at 13:48











  • @Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

    – Totty.js
    Oct 31 '18 at 4:28











  • Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

    – Marit
    Oct 31 '18 at 13:12

















The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

– Marit
Oct 30 '18 at 13:48





The cucumberjs project has pretty good documentation on GitHub that might help you. Otherwise you can join the Cucumber slack to get some specific help from the community.

– Marit
Oct 30 '18 at 13:48













@Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

– Totty.js
Oct 31 '18 at 4:28





@Marit the homepage and the faq don't mention "typescript", can please you point it out with a specific link?

– Totty.js
Oct 31 '18 at 4:28













Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

– Marit
Oct 31 '18 at 13:12





Sorry I don't use typescript/javascript myself, but there are plenty of active users & committers for the javascript version who should be able to help you.

– Marit
Oct 31 '18 at 13:12












2 Answers
2






active

oldest

votes


















2














Updated answer based on more info provided:



The first thing you should do is separate your features and steps into their own folders



 tests
features
a.feature
b.feature
stepDefinitions
aStep.ts


Next, create a cucumber.js file which will be the cucumber profile. I use the following profile but it's up to you what you want to do



    var common = [
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format json:./reports/cucumber-json-reports/report.json',
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--parallel 20',
'--require ./build/tests/stepDefinitions/**/*.js',
'--require ./build/tests/stepDefinitions/*.js',
'--require ./build/tests/support/*.js'
].join(' ');

module.exports = {
default: common,
};


The above tells cucumber where your steps are. Now you can run something like the following from the root of the project



tsc && ./node_modules/.bin/cucumber-js ./tests/features/ -p default


This will




  1. Compile your code

  2. Run the cucumber-js library

  3. Run cucumber-js against the features folder

  4. Run cucumber-js against the features folder with the default profile that you built in your cucumber.js file






share|improve this answer



















  • 1





    Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

    – Totty.js
    Nov 28 '18 at 8:19






  • 1





    No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

    – Raymond Kelly
    Nov 28 '18 at 18:01



















0














I'm not following your question? Cucumber has nothing to do with compiling .ts files to .js files, that is typescript doing that. If you don't want the .ts and .js files in the same folder then you can add the following to your tsconfig.json file.



"outDir": "typeScript"


This will output the javascript files to the folder "typeScript" at the root of your project. I personally like to keep them together as it can be easier to debug. There is no way to get away from the .js files being created as they are what are used when running javascript.






share|improve this answer
























  • The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

    – Totty.js
    Nov 22 '18 at 3:32











  • Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

    – Raymond Kelly
    Nov 27 '18 at 5:27











  • I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

    – Totty.js
    Nov 27 '18 at 8:34











  • Please check my updated question "Why just using typescript won't work:"

    – Totty.js
    Nov 27 '18 at 8:37











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52940221%2fproper-usage-of-cucumber-with-typescript%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Updated answer based on more info provided:



The first thing you should do is separate your features and steps into their own folders



 tests
features
a.feature
b.feature
stepDefinitions
aStep.ts


Next, create a cucumber.js file which will be the cucumber profile. I use the following profile but it's up to you what you want to do



    var common = [
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format json:./reports/cucumber-json-reports/report.json',
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--parallel 20',
'--require ./build/tests/stepDefinitions/**/*.js',
'--require ./build/tests/stepDefinitions/*.js',
'--require ./build/tests/support/*.js'
].join(' ');

module.exports = {
default: common,
};


The above tells cucumber where your steps are. Now you can run something like the following from the root of the project



tsc && ./node_modules/.bin/cucumber-js ./tests/features/ -p default


This will




  1. Compile your code

  2. Run the cucumber-js library

  3. Run cucumber-js against the features folder

  4. Run cucumber-js against the features folder with the default profile that you built in your cucumber.js file






share|improve this answer



















  • 1





    Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

    – Totty.js
    Nov 28 '18 at 8:19






  • 1





    No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

    – Raymond Kelly
    Nov 28 '18 at 18:01
















2














Updated answer based on more info provided:



The first thing you should do is separate your features and steps into their own folders



 tests
features
a.feature
b.feature
stepDefinitions
aStep.ts


Next, create a cucumber.js file which will be the cucumber profile. I use the following profile but it's up to you what you want to do



    var common = [
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format json:./reports/cucumber-json-reports/report.json',
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--parallel 20',
'--require ./build/tests/stepDefinitions/**/*.js',
'--require ./build/tests/stepDefinitions/*.js',
'--require ./build/tests/support/*.js'
].join(' ');

module.exports = {
default: common,
};


The above tells cucumber where your steps are. Now you can run something like the following from the root of the project



tsc && ./node_modules/.bin/cucumber-js ./tests/features/ -p default


This will




  1. Compile your code

  2. Run the cucumber-js library

  3. Run cucumber-js against the features folder

  4. Run cucumber-js against the features folder with the default profile that you built in your cucumber.js file






share|improve this answer



















  • 1





    Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

    – Totty.js
    Nov 28 '18 at 8:19






  • 1





    No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

    – Raymond Kelly
    Nov 28 '18 at 18:01














2












2








2







Updated answer based on more info provided:



The first thing you should do is separate your features and steps into their own folders



 tests
features
a.feature
b.feature
stepDefinitions
aStep.ts


Next, create a cucumber.js file which will be the cucumber profile. I use the following profile but it's up to you what you want to do



    var common = [
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format json:./reports/cucumber-json-reports/report.json',
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--parallel 20',
'--require ./build/tests/stepDefinitions/**/*.js',
'--require ./build/tests/stepDefinitions/*.js',
'--require ./build/tests/support/*.js'
].join(' ');

module.exports = {
default: common,
};


The above tells cucumber where your steps are. Now you can run something like the following from the root of the project



tsc && ./node_modules/.bin/cucumber-js ./tests/features/ -p default


This will




  1. Compile your code

  2. Run the cucumber-js library

  3. Run cucumber-js against the features folder

  4. Run cucumber-js against the features folder with the default profile that you built in your cucumber.js file






share|improve this answer













Updated answer based on more info provided:



The first thing you should do is separate your features and steps into their own folders



 tests
features
a.feature
b.feature
stepDefinitions
aStep.ts


Next, create a cucumber.js file which will be the cucumber profile. I use the following profile but it's up to you what you want to do



    var common = [
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format json:./reports/cucumber-json-reports/report.json',
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--parallel 20',
'--require ./build/tests/stepDefinitions/**/*.js',
'--require ./build/tests/stepDefinitions/*.js',
'--require ./build/tests/support/*.js'
].join(' ');

module.exports = {
default: common,
};


The above tells cucumber where your steps are. Now you can run something like the following from the root of the project



tsc && ./node_modules/.bin/cucumber-js ./tests/features/ -p default


This will




  1. Compile your code

  2. Run the cucumber-js library

  3. Run cucumber-js against the features folder

  4. Run cucumber-js against the features folder with the default profile that you built in your cucumber.js file







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 28 '18 at 0:52









Raymond KellyRaymond Kelly

317214




317214








  • 1





    Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

    – Totty.js
    Nov 28 '18 at 8:19






  • 1





    No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

    – Raymond Kelly
    Nov 28 '18 at 18:01














  • 1





    Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

    – Totty.js
    Nov 28 '18 at 8:19






  • 1





    No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

    – Raymond Kelly
    Nov 28 '18 at 18:01








1




1





Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

– Totty.js
Nov 28 '18 at 8:19





Thanks, that's how the problem is solved! I was looking for the --require feature in cucumber, but I missed it somehow.

– Totty.js
Nov 28 '18 at 8:19




1




1





No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

– Raymond Kelly
Nov 28 '18 at 18:01





No problem, the documentation for cucumber-js could do with some cleaning up to help people with this. Glad I could help.

– Raymond Kelly
Nov 28 '18 at 18:01













0














I'm not following your question? Cucumber has nothing to do with compiling .ts files to .js files, that is typescript doing that. If you don't want the .ts and .js files in the same folder then you can add the following to your tsconfig.json file.



"outDir": "typeScript"


This will output the javascript files to the folder "typeScript" at the root of your project. I personally like to keep them together as it can be easier to debug. There is no way to get away from the .js files being created as they are what are used when running javascript.






share|improve this answer
























  • The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

    – Totty.js
    Nov 22 '18 at 3:32











  • Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

    – Raymond Kelly
    Nov 27 '18 at 5:27











  • I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

    – Totty.js
    Nov 27 '18 at 8:34











  • Please check my updated question "Why just using typescript won't work:"

    – Totty.js
    Nov 27 '18 at 8:37
















0














I'm not following your question? Cucumber has nothing to do with compiling .ts files to .js files, that is typescript doing that. If you don't want the .ts and .js files in the same folder then you can add the following to your tsconfig.json file.



"outDir": "typeScript"


This will output the javascript files to the folder "typeScript" at the root of your project. I personally like to keep them together as it can be easier to debug. There is no way to get away from the .js files being created as they are what are used when running javascript.






share|improve this answer
























  • The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

    – Totty.js
    Nov 22 '18 at 3:32











  • Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

    – Raymond Kelly
    Nov 27 '18 at 5:27











  • I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

    – Totty.js
    Nov 27 '18 at 8:34











  • Please check my updated question "Why just using typescript won't work:"

    – Totty.js
    Nov 27 '18 at 8:37














0












0








0







I'm not following your question? Cucumber has nothing to do with compiling .ts files to .js files, that is typescript doing that. If you don't want the .ts and .js files in the same folder then you can add the following to your tsconfig.json file.



"outDir": "typeScript"


This will output the javascript files to the folder "typeScript" at the root of your project. I personally like to keep them together as it can be easier to debug. There is no way to get away from the .js files being created as they are what are used when running javascript.






share|improve this answer













I'm not following your question? Cucumber has nothing to do with compiling .ts files to .js files, that is typescript doing that. If you don't want the .ts and .js files in the same folder then you can add the following to your tsconfig.json file.



"outDir": "typeScript"


This will output the javascript files to the folder "typeScript" at the root of your project. I personally like to keep them together as it can be easier to debug. There is no way to get away from the .js files being created as they are what are used when running javascript.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 '18 at 2:55









Raymond KellyRaymond Kelly

317214




317214













  • The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

    – Totty.js
    Nov 22 '18 at 3:32











  • Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

    – Raymond Kelly
    Nov 27 '18 at 5:27











  • I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

    – Totty.js
    Nov 27 '18 at 8:34











  • Please check my updated question "Why just using typescript won't work:"

    – Totty.js
    Nov 27 '18 at 8:37



















  • The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

    – Totty.js
    Nov 22 '18 at 3:32











  • Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

    – Raymond Kelly
    Nov 27 '18 at 5:27











  • I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

    – Totty.js
    Nov 27 '18 at 8:34











  • Please check my updated question "Why just using typescript won't work:"

    – Totty.js
    Nov 27 '18 at 8:37

















The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

– Totty.js
Nov 22 '18 at 3:32





The problem is I want to use cucumber + typescript. If you generate the files in that directory they will not read the .feature files... So you need another step to copy over the .feature files in that temporary folder... which is dirty.

– Totty.js
Nov 22 '18 at 3:32













Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

– Raymond Kelly
Nov 27 '18 at 5:27





Yes, I have used cucumber and typescript without any problems. I'm not sure I follow why you need to copy folders over to run feature tests that should not be the case. 1. Can you provide the command you are using to run your tests 2. Can you provide a sample project and I will review it and tell you the steps to follow? If not I can put a repository together sometime this week and show you how it works.

– Raymond Kelly
Nov 27 '18 at 5:27













I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

– Totty.js
Nov 27 '18 at 8:34





I don't have the code here... but you need to copy features over because you are running js files which are in the outDir which has no idea where the feature files are located.

– Totty.js
Nov 27 '18 at 8:34













Please check my updated question "Why just using typescript won't work:"

– Totty.js
Nov 27 '18 at 8:37





Please check my updated question "Why just using typescript won't work:"

– Totty.js
Nov 27 '18 at 8:37


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52940221%2fproper-usage-of-cucumber-with-typescript%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

鏡平學校

ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

Why https connections are so slow when debugging (stepping over) in Java?