Skip to content
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

yadda & mocha & express #62

Closed
AlbanMinassian opened this issue Feb 21, 2014 · 4 comments
Closed

yadda & mocha & express #62

AlbanMinassian opened this issue Feb 21, 2014 · 4 comments

Comments

@AlbanMinassian
Copy link
Contributor

I search an example with yadda + mocha + expressjs.

Is yadda users could share an example ?

Ami44

@cressie176
Copy link
Member

To clarify - are you testing an expressjs application with mocha + yadda?

@AlbanMinassian
Copy link
Contributor Author

yes, is'it possible ?

@cressie176
Copy link
Member

Yes, it's possible. You just need to start express from your mocha tests, then make http requests to the server from inside your step definitions. I've added an example here

The example is RESTful. If you want to do web application testing (i.e. navigating a web ui) then you should look at one of the other frameworks designed for this such as casper, webdriver or zombie. There are already examples for using Yadda with these. You could also take a look at nightwatch. I haven't added an example for this yet, but it's on my todo list.

@AlbanMinassian
Copy link
Contributor Author

It's very great . Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants