Testing

Showing 10-16 of 16 results
EngineeringIcon ChevronBack-end

Testing Your Go App: Get Started The Right Way

by Gabriel Aszalos

When Golang first came out, there were next to no resources available about how to efficiently test your Go-written application. Even now, with plenty of guides and recommendations available, many bright-eyed developers still try to apply their Ruby or JavaScript mindset and use external frameworks to test apps written in Go. In this article, Toptal Freelance Developer Gabriel Aszalos first explains Golang philosophy and then covers the basics of testing in Go, from table testing to JSON response assertion.

10 minute readContinue Reading
EngineeringIcon ChevronBack-end

Jumpstart Your PHP Testing with Codeception

by Vasily Koval

Would you like to test your PHP code like a boss? Do you feel that basic unit tests and PHPUnit just don't cut it anymore? If your answer to both questions is yes, you might want to try Codeception, a mature and well-documented testing framework designed to outperform PHPUnit and Behat. In this post, Toptal Freelance Software Engineer Vasily Koval describes how he came to take the plunge and start using Codeception, and he explains why you should check out Codeception for your PHP testing needs.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

HTTP Request Testing: A Developer's Survival Tool

by Bhushan Lodha

It's tragically common for developers to come into a project where proper automated testing has been and will continue to be overlooked. It's a situation Freelance Developer Bhushan Lodha has found himself in all too often; fortunately, he's found a solution. In this article, he briefly covers the reasons why testing is overlooked and ultimately explains his "coding life hack" to ensure quality control even when he can't introduce a testing framework.

11 minute readContinue Reading
EngineeringIcon ChevronTechnology

Automation in Selenium: Page Object Model and Page Factory

by Dejan Zivanovic

Proper test automation is not always easy to achieve and requires almost as much design and thought as needed for the software itself. In the agile way of development tests are an essential ingredient in ensuring quality of software. However, unless these test codes are maintainable, they can prove to be more of a nuisance, especially when it comes to automated testing of modern web applications. This article is an easy introduction to Selenium features Page Object and Page Factory, how they can be used to model web applications, and how to write maintainable test code using them.

9 minute readContinue Reading
EngineeringIcon ChevronTechnology

How React Components Make UI Testing Easy

by Swizec Teller

Testing back-ends is easy. But testing front-end code is kinda hard. In the ten years I've been a developer, I hadn’t found a decent way to test user interaction and view rendering until I started poking at React.

11 minute readContinue Reading
EngineeringIcon ChevronBack-end

Unit Tests, How to Write Testable Code and Why it Matters

by Sergey Kolodiy

In this article, I will show that unit testing itself is quite easy; the real problems that complicate unit testing, and introduce expensive complexity, are a result of poorly-designed, untestable code. We will discuss what makes code hard to test, which anti-patterns and bad practices we should avoid to improve testability, and what other benefits we can achieve by writing testable code. We will see that writing testable code is not just about making testing less troublesome, but about making the code itself more robust, and easier to maintain.

22 minute readContinue Reading
EngineeringIcon ChevronMobile

Android Testing Tutorial: Unit Testing like a True Green Droid

by Marko Vitas

The extremely diverse and fragmented Android ecosystem poses certain challenges when it comes to testing. In this article, we take a look at some approaches that can be effective with tackling these challenges and ease the process of writing and automating tests.

12 minute readContinue Reading

Join the Toptal® community.