Home » Testing » Page 2

Tag Archives: Testing

19 Best Practices For Automation testing With Node.js

Node js has become one of the most popular frameworks in JavaScript today. Used by millions of developers, to develop thousands of project, node js is being extensively used. The more you develop, the better the testing you require to have a smooth, seamless application. This article shares the best practices for the testing node.in 2019, to deliver a robust ...

Read More »

7 Ways to Improve Your Test Suite with Docker

I try to be disciplined in writing tests, but it’s usually not long before something gets in the way. Integration-testing interdependent APIs, verifying unusual server configurations, and seeding complex data make testing large applications tough. While plenty of solutions exist, I have found myself leaning on Docker more and more in the past year. Why Docker for Testing? If you ...

Read More »

Rails Frontend Testing with JavaScript Insights

One of the newer things that Rails 5+ provides is system tests. This gives us a full frontend testing experience with Capybara, which runs each of our tests through a real browser window to perfectly provide what a normal web user would experience. Having this baked in to Rails makes for an elegant way to get started and hit the ...

Read More »

Test-Driven Development For JavaScript

JavaScript is handsdown the strangest language I’ve ever had to test. Its also one of the most popular ones out there right now. The influx of JavaScript developers tells us that a lot of modern-day web development is starting to focus more and more on the frontend. This trend is interesting because it represents a shift in development that we’ve ...

Read More »

AngularJS Unit Testing With Karma and Jasmine

One of the benefits of using AngularJS is that it is designed with testability in mind. Having integrated unit testing can help prevent bugs as projects grow in complexity and the number of developers. It also provides new devs with documentation on how to use existing code. In my last article, I explained how to use Test-Driven Development (TDD) to ...

Read More »

Testing HTTP APIs with SuperTest

You know tests are Good For You®. You probably even write unit tests and measure the code coverage of your business logic. Congrats! However, at that layer, your only writing tests for yourself, your teammates, or others consuming your code-level interfaces. But what about your web-level interface? Your HTTP API is the interface you give others who depend on your ...

Read More »

Capybara and Selenium for Testing and Scraping

Capybara, aside from being the largest rodent in the world, is also a fantastic tool to aid you in interacting with browser functionality in your code, either for testing or just to interact with or scrape data from a website. Capybara isn’t what actually interacts with the website — rather, it’s a layer that sits between you and the actual ...

Read More »

5 Reasons Automated Testing Is Worth the Investment

In many engineering disciplines, testing is an accepted practice. It’s not something considered an afterthought or a separate process. It’s seen as a core part of the profession. Something you do without exception. But in software development, testing doesn’t seem to be quite so absolute — yet. Don’t misunderstand me. I don’t want to start a flame war about this. ...

Read More »

Unit Testing in Ruby

In his article on Unit Testing, Martin Fowler mentions that what a unit actually is can change depending on what school of thought you come from. Many from the object-oriented world consider the Class as the unit, whereas those in the functional programming world consider the Function the unit. Even though Ruby is an object-oriented language, I tend to see ...

Read More »