Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Capybara

do Capybara and Cucumber essentially serving the same purpose. Should I pick one or the other when doing a project or do they do different things?

2 Answers

Andrea,

They are definitely two different things. Capybara, serves a bit of a niche purpose (integration testing) and is usually used alongside something else (like RSpec). Specifically, Capybara is a domain specific language (DSL) that provided methods for testing what it would be like for a user navigating about your site. Cucumber serves a niche purpose as well, which is to take plain text (that your client might write) and turn that into test code. Unless you're building an app for a client, Cucumber isn't particularly beneficial.

Thanks, I'm just starting the Cucumber book and didn't know how it fit with everything. You cleared it up for me.