Hey guys, is there any logging mechanisms already implemented. If yes, how to include it ??
And how to add BDD based output or assertions to testcafe??
We discussed possibilities of adding the BDD style to our tests. Please take a look at the corresponding issue. You can vote for it now and we will consider its implementation in the future.
Currently, we have a PR in TestCafe repo for a feature that will allow adding additional information about tests to custom reports. So this functionality can be used for creating BDD output.
You can use cucumber to get the BDD style for TestCafe tests. Please see the testcafe-cucumber smoke example and find some analogs (rquellh/testcafe-cucumber, mwq27/testcafe-cucumber-demo) for integrating TestCafe and cucumber.
Atleast anyother logging.. Like having a log for each and every step.. Like 1 Navigated 2 Clicked 3 Asserted
If yes, can you share a sample code. May be I can Integrate with chaijs and can get the output in BDD style
Unfortunately this style of logging is available only for cucumber tests now.
Thanks for the reply @helen-dikareva