课程: End-to-End JavaScript Testing with Cypress.io
What is Cypress?
- [Instructor] All right, well, first things first, you're probably wondering what Cypress is and why it's such a helpful tool. So Cypress, the first thing that you should know about it is that it's a powerful tool for conducting end-to-end testing, right, end-to-end testing, basically meaning that you're writing tests that will automatically use your site as a user would, and make sure that everything is working correctly. So that's the main purpose of this tool, is to make that easier. Now, the second thing to know about Cypress is that it's a JavaScript testing framework, so A, this means, of course, as I already said, that Cypress uses JavaScript, but also it's a little bit opinionated, right? In other words, as you'll see shortly, there are specific ways to define each of your Cypress tests and specific ways to put your Cypress tests together. All right, in addition, it's also an open-source tool, which is pretty nice because it means that the library itself is free to use. There are, of course, things like paid hosting that you can pay for if you decide that it's worth your while, but you don't have to pay for anything in order to use this software. And finally, it's a powerful alternative to other tools like Selenium, Puppeteer, and other end-to-end testing tools. In just a minute, we'll actually talk about why Cypress is superior to these tools in many ways.