Dany ParedesProdanywalls.com·Apr 23, 2024Testing in Angular: Replace Karma to Web Test RunnerI was writing an article for Kendo about testing in Angular, but with the deprecation of Karma, I had some questions about the future of testing in Angular. I'm using Jest for my personal and professional projects, along with the Angular testing libr...Discuss·877 readsAngularTesting
Marcin WosinekforHow to devhow-to.dev·Feb 15, 2024Advantages of unit testing—with examples in JasmineWriting unit tests takes time and effort. Nonetheless, many teams insist on writing them anyway—that’s because of the benefits they bring to a project. Those benefits are mainly the following: fast feedback—unit tests speed up each iteration of twea...Discuss·142 readsJavaScript
Marcin WosinekforHow to devhow-to.dev·Feb 8, 2024Pure functions and basic tests in JasminePure functions are the perfect case for unit testing. For a given input, we always expect the same output—there is no internal state involved. Let’s take a look at a few examples and some simple tests that check if the methods work as expected. Jasmi...Discuss·348 readsTesting
Senbagaraman Msenbagaraman04.hashnode.dev·May 30, 2023Unit Test : Angular Series : Mocking a service in componentsThis article will explain how to mock a service call while trying to cover a method in a component. Consider the following component, export class HelloComponent { constructor(private helloSvs: HelloService) { } serviceCall() { t...Discuss·31 readsAngular
Senbagaraman Msenbagaraman04.hashnode.dev·May 29, 2023Unit Testing in Angular (General Intro)Unit Testing is where a little to medium part of work is consumed for many developers' life. Many organizations expect the code to be unit tested against a predefined benchmark to avoid surprises at the last minute. “Test Driven Development” is one o...Discussunittesting
Anant Singh Raghuvanshianantraghuvanshi.hashnode.dev·Mar 1, 2023Testing Angular Apps with Jasmine and Karma: A Comprehensive GuideIntroduction Unit testing is a critical component of software development, and Angular provides a robust testing framework. The testing framework comprises Jasmine, a popular JavaScript testing library, and Karma, a test runner, that can be used to e...Discuss·51 likes·71 reads2Articles1Week
Ayush Agarwalblogs.ayushdev.com·Feb 25, 2023Getting Started with Jasmine Testing in Angular: A Beginner's GuideAs developers, we all know the importance of testing our code. It's a critical part of the software development process that ensures the functionality and quality of our applications. However, writing tests can often be a daunting task, especially fo...Discuss·189 readsAngular
Dany ParedesProdanywalls.com·Dec 30, 2022How and When to Use Mocks or Spies on Unit TestingA few days ago, my friend was writing tests for an Angular App with two dependencies and wanted to test his code. I suggested that he should Spy and Mock the dependencies. When deciding whether to use a Mock or a Spy, it is important to consider the ...Discuss·7.4K readshow-toTesting
sunil patroqavbox.hashnode.dev·Dec 3, 2022Guide to setup webdriverIO with typescript and run a sample testWebdriverIO is an advanced automation framework for web and mobile application. It’s basically a wrapper on top of selenium (WebDriver protocol with nodeJS) for web automation and wrapper on top of appium for mobile application. WebDriverIO is termed...Discuss·159 readsWebdriver.io
Marcin WosinekforHow to devhow-to.dev·Aug 17, 2022How to Start Unit Testing with JasmineIn my previous article, I showed pseudocode examples of unit testing pure functions. In response to that article, I got an excellent question—so how do I start testing my code then? Let’s take a more practical look at the same, simple case for testin...Discuss·2 likes·1.8K readsJavaScript