-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose fixture and test functions to allow to use them dynamically #1373
Comments
Can you give some example of how you expect it to work, please? E.g. if we expose these functions, how test task should be started? Currently you tell TestCafe to run specific file/dir and it lookups for file with |
Of course this is just an idea, but I'm thinking of something like the following:
|
@reaktivo How about runner.populateTests('suite/file name', (fixture, test) => {
fixture(feature.name);
feature.steps.forEach(step => {
test(step.name, step.fn);
});
}); ? |
But on the other hand I guess the better way to solve this will be plugable compilers. You will create |
@inikulin What is the progress on this? I would love to use testcafe with BDD :) |
are there any news on this? :) |
Waiting for some native BDD support as well. |
I am also interested in this integration. I've tried my best to integrate Cucumber and TestCafe, but my solution loses some of the features of TestCafe in the process. If there could be an easier way it would be appreciated. |
Yes I'm very interested in this too...I tried to integrate cucumberjs & testcafe but have found it to be seriously challenging at times :( |
I am also interested in this integration... |
Is there a way that we can control the lifecycle of test controller, so that we can use testcafe more like a library than a framework? Just like web driver does. |
I tried integrating with Gauge but it looks like there's a problem with the Gauge library. Having the ability to integrate with BDD would be finding the lost ark of agile testing :) |
I agree with everybody else. It would be best if we can get this soon because the workaround looses features in testcafe. |
any update on this ? team is very keen in using BDD with testcafe. It will be biggest milestone for people migrating from web-driver to testcafe and not going for cypress |
Hey I'd love to have official support too. In the meantime I have created an unoffical integration with cucumberjs and TestCafe. Some folks here may find it useful. Link below |
Please update once we have stable cucumber bdd integration with testcafe. Currently, i am also facing issues with fixture and test using cucumber bdd. |
we've been using rquellh's testcafe-cucumber repo and love it. it's helped us write more reusable and understandable tests. we also reuse the feature tests for cross-browser testing. https://github.com/rquellh/testcafe-cucumber/blob/master/README.md would love to see official support for cucumber-js in testcafe (so that we can upgrade, share knowledge with the larger community etc.) |
Hi Kenf128 , I am also using the same bdd https://github.com/rquellh/testcafe-cucumber/blob/master/README.md but my problem is how can i use the requestHooks for logger and custom hooks in this framework. How to attach to tests. If anyone has similar issue and solution please share. |
Hi @inikulin! When cucumber will be officially supported? I'm dying for it.. |
+1 |
+1, any news on this? |
1 similar comment
+1, any news on this? |
I've already checked some integrations made by the community but they don't support all the features offered by TestCafe. I would be glad if there was more support for BDD 👍 |
Just to point at a another community solution out there, that I find pretty useful (though I couldn't tell whether it's complete in the sense @ampc mentioned above): The README of that package also refers to this issue, pointing out that it is going to be abandoned, once an official solution has been established. Maybe someone will find it to be a viable temporary solution :) |
grebaldi That solution has no posibility to create reports showing every step, it only reports the name of the test that passed/failed. Or you would have to build something yourself of course. |
+100 |
Any further update on this? |
Once we get any results, we will post them here. |
this is the main reason our company isn't using testcafe for now. |
I also would like to use Gherkin with TestCafe |
Are there any updates for this feature? |
Once we get any results, we will post them here. |
Hi TestCafe team, |
Hello @vvedachalam |
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open. |
We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you. |
Hi all, I've been maintaining and improving the gherkin-testcafe package for a while now. It obviously doesn't cover every single one of testcafé's features yet so feel free to try it and ask for improvements. |
Are you requesting a feature or reporting a bug?
Requesting a feature
What is the current behavior?
For TestCafe to run a test we have to create a file which explicitly calls the
fixture()
and thetest()
function at least once.What is the expected behavior?
Ideally we should be able to grab a handle of this functions without requiring to create a test file, this would allow us to integrate TestCafe with other test tools. I'm currently struggling to integrate with CucumberJS. Being able to have a reference to the
fixture()
andtest()
global functions would allow me to use the CucumberJS hooks which would help in transitioning to TestCafe without losing a lot of feature files that have been written with the Gherkin syntax.How would you reproduce the current behavior (if this is a bug)?
N/A
Is there any others wishing to integrate TestCafe with other test tools? I'm currently working on a hacky solutions which involves generating test files at test execution time, requiring my actual test files and passing the
fixture
andtest
functions as reference (still not working thought). And I would like to know if there's any blessed way of doing this cleanly in a supported way.The text was updated successfully, but these errors were encountered: