Best of TestingSeptember 2024

  1. 1
    Article
    Avatar of ontestautomationOn Test Automation·2y

    I am tired of AI

    There has been a significant surge in the use of AI across various fields. While acknowledging some benefits, the author expresses fatigue and frustration with the overuse and marketing of AI as a solution for everything. The post discusses the inefficiencies of AI-powered tools in software testing, the issues with AI-generated conference proposals, and lackluster AI-generated content in general. Despite some valid applications, such as early disease detection, the author believes the current trajectory isn't entirely positive.

  2. 2
    Article
    Avatar of bytesdevBytes by ui.dev·2y

    I like rusty JavaScript

    Rspack has emerged as a high-performance JavaScript bundler written in Rust, promising to be a faster and compatible alternative to webpack. ByteDance developers initiated it to solve performance issues with large monolithic apps. With features like lazy compilation and improved plugin compatibility, Rspack aims to simplify build processes and boost efficiency. QA Wolf offers a solution for faster and more reliable software testing by automating the process and speeding up test cycles.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    Tests and Sensibility

    The post discusses the critical importance of software testing, debunking common excuses like 'testing takes too long' and 'we have a QA team.' Using anecdotal evidence, the author highlights that skipping tests leads to technical debt and unreliable software. They argue that writing tests is akin to an insurance policy, ensuring code reliability and fostering a trustful, productive development environment.

  4. 4
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    API Testing with Postman: A Step-by-Step Guide Using the Spotify API

    This guide provides a comprehensive introduction to using Postman for API development and testing, focusing on the Spotify API. It covers setting up a Postman workspace, creating collections and HTTP requests, and employing variables for streamlined testing. The guide also explains the process of adding authorization for making API requests, specifically how to generate an access token for Spotify. This foundational knowledge equips users to explore more advanced API functionalities and testing methodologies.

  5. 5
    Article
    Avatar of itnextITNEXT·2y

    You are using Pinia wrong!

    Switching from Vuex to Pinia, the author encountered issues using the setup stores syntax, particularly with unit testing. While the logger worked, the spy function failed, uncovering the complexity and different internal structure of setup stores. Workarounds are necessary to align tests, and using `store.$onAction` for side effects adds further complications.

  6. 6
    Article
    Avatar of winglangWing·2y

    The road to Wing 1.0

    Wing aims to deliver a robust environment for cloud application development by providing a comprehensive CLI, versatile platforms, and a strong testing framework. The compiler supports features like static typing and interoperability with TypeScript libraries, while the standard library offers built-in utilities for common programming tasks. The Wing Console/Simulator enhances local development with observability and interactivity. Extensive documentation and examples aim to make Wing accessible to both application developers and platform engineers.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    How to Do Software Testing 10x Faster

    KaneAI, the world's first end-to-end software testing agent by LambdaTest, enables faster and more efficient software testing. It generates automated tests from natural language instructions, supports major languages and frameworks, and offers numerous features like bug detection, test execution across multiple devices, and integration with tools like Jira and Slack. KaneAI aims to accelerate testing processes, making it 10x faster and reducing errors.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    Event sourcing for PHP

    Event sourcing is used to model complex business requirements in PHP, providing a clear event-driven approach. The library supports scenario-based testing for ensuring business needs are met and includes built-in tools for quick event and command creation. EventSauce, created by Frank de Jonge, facilitates these processes. The website leverages Tailwind CSS, Zondicons, and Webpack.

  9. 9
    Article
    Avatar of atomicobjectAtomic Spin·2y

    4 Tips for Testing with Playwright

    The post provides four valuable tips for improving end-to-end testing with Playwright in a TypeScript/Svelte project. The tips include enabling retries for failing tests to handle flakiness, replacing the deprecated .type method with .fill or .pressSequentially, using waitForTimeout as a last-resort option, and organizing tests using *describe* blocks for better troubleshooting. An additional bonus tip includes how to group and run tests with specific tags.

  10. 10
    Article
    Avatar of lnLaravel News·2y

    Pest 3 is released!

    Pest 3 is now available, introducing features such as mutation testing, architecture presets, team management, a new configuration API, and various architectural testing improvements. Users can install Pest 3 on new Laravel projects or upgrade existing Pest applications using the provided upgrade guide.

  11. 11
    Video
    Avatar of nickchapsasNick Chapsas·2y

    TUnit: The Future of Testing in .NET

    TUnit is a new testing library for .NET that offers significant modernization and control for unit and integration testing. It leverages source generation for faster test execution and provides advanced features like async assertions, hooks for setup and teardown, multi-threaded test execution, and retry mechanisms for flaky tests. The library is highly configurable and supports dependency injection and compile-time checks, which enhance the robustness and flexibility of tests. The post discusses these features in detail using a simple calculator test as an example and encourages readers to try out TUnit and provide feedback.

  12. 12
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Handle Side Effects in Jest – A Guide to Effective Mocking

    Unit testing is crucial for ensuring code reliability by testing individual components in isolation. Jest, a popular testing framework, offers powerful mocking capabilities to handle external dependencies and side effects. This guide covers unit testing essentials with Jest, focusing on using mocks to simulate external dependencies and manage side effects. Practical examples include testing functions that interact with databases or rely on other functions, highlighting how to create reliable and maintainable tests.

  13. 13
    Article
    Avatar of spaceliftSpacelift·2y

    Top 20 DevOps Testing Tools to Try in 2024

    DevOps testing tools are crucial for maintaining quality and security in software development. This list highlights 20 tools for diverse testing needs, including platforms like BrowserStack, Jenkins, Postman, Cypress, and Selenium. Each tool offers unique features such as real device testing, API testing, cross-browser compatibility, and load testing. Choosing the right tools can integrate seamlessly with your existing CI/CD workflows and help detect regressions before reaching users.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    7 Best Test Automation Tools to Supercharge Your Software Testing Efficiency

    Test automation is crucial for enhancing the speed, accuracy, efficiency, and cost-effectiveness of software testing. By automating repetitive tasks, it allows human testers to focus on more complex responsibilities. Popular tools like Keploy, Katalon, Selenium, Appium, TestComplete, Cypress, and Siege each offer unique features suitable for various aspects of testing, including web, mobile, API, and performance tests.

  15. 15
    Article
    Avatar of thedailywtfThe Daily WTF·2y

    Testing the Juniors

    Stefan, a new junior developer, encounters a situation where his tests fail after another junior developer, Terry, modified his code. Terry's changes introduced a bug but instead of fixing it correctly, Terry bypassed test failures. Stefan learns the importance of visibility and proper error reporting to ensure team efficacy and growth.

  16. 16
    Video
    Avatar of vscodeVisual Studio Code·2y

    Write better tests and stop breaking the build

    The post highlights common pitfalls in software testing and emphasizes the importance of writing tests to prevent bugs in production code. It provides practical tips to speed up the testing process using Mocha snippets, GitHub Copilot, and a Test Explorer. Additionally, it delves into advanced testing strategies like refactoring tests for clarity and adopts practices from Test-Driven Development (TDD) and Behavior-Driven Development (BDD). The goal is to improve code quality and minimize production issues, ensuring better software reliability.

  17. 17
    Article
    Avatar of awegoAwesome Go·2y

    How Go Tests "go test"

    The post dives into the evolution of how the Go team tests the 'go' tool, focusing on different strategies for testing CLI tools. It covers the transition from using a bash script ('test.bash') to 'testgo' in Go, and finally to a more advanced 'script_test.go'. The post introduces 'testscript', a package that allows for testing CLI tools with a shell-like script language in Go, demonstrating its application with examples from the Atlas project.

  18. 18
    Video
    Avatar of codeheimcodeHeim·2y

    #53 Golang - API Testing in Go with net/http/httptest

    Learn how to perform API testing in Go using the net/http/httptest package. This post demonstrates writing unit tests for API endpoints, including setting up test databases, organizing test code, and validating responses. It emphasizes the importance of thorough testing for building reliable applications.

  19. 19
    Article
    Avatar of codemazeCode Maze·2y

    Load Testing ASP.NET Core Web API With JMeter

    Learn how to load test an ASP.NET Core Web API using JMeter, an open-source tool for measuring web application performance. The guide covers installation, setting up load testing parameters, configuring request samplers, and using listeners to analyze results. It also discusses generating and analyzing HTML reports and additional configurations like assertions and timers to validate API responses effectively.

  20. 20
    Article
    Avatar of baeldungBaeldung·2y

    Difference Between Mockito Core and Mockito Inline

    Mockito offers Mockito Core and Mockito Inline for creating mock objects in Java. Mockito Core provides basic functionality for creating mocks, stubs, and spies, while Mockito Inline extends this functionality to handle final classes, final fields, static methods, and constructors, becoming the default mock maker from version 5.0.0 onwards.

  21. 21
    Article
    Avatar of developer20Developer 2.0·2y

    Go libs I don't use but are popular

    The post discusses popular Go libraries that the author chooses to avoid, highlighting their drawbacks, especially in larger projects. It covers sqlmock, GORM, and gorilla mux, providing reasons like brittleness in tests, complexity in schema migrations, and performance bottlenecks. Alternative approaches such as integration testing, using sqlx, and sticking to Go’s standard net/http package are suggested for more maintainable and scalable solutions.

  22. 22
    Article
    Avatar of baeldungBaeldung·2y

    Asserting REST JSON Responses With REST-assured

    This post explains how to assert JSON bodies in REST API responses using REST-assured and other libraries like JSONAssert, JsonUnit, and ModelAssert. It covers setting up WireMock to simulate servers and handle dynamic fields in JSON responses that might vary in order or change unpredictably. The guide demonstrates how to perform precise and flexible JSON assertions and highlights how to integrate with REST-assured using Hamcrest matchers for cleaner test code.

  23. 23
    Article
    Avatar of communityCommunity Picks·2y

    In-Source Testing with Vite and Vitest

    Testing your code is crucial in development, and Vitest offers a simple and performant way to do so in Vite projects. This guide explains how to perform in-source testing using Vitest by configuring it properly and writing tests within your source files. Two function examples, one simple and one complex, demonstrate these steps, ensuring that all your code is thoroughly tested and maintainable. By keeping tests and code in the same place, you simplify the development process.

  24. 24
    Article
    Avatar of foojayioFoojay.io·2y

    Run true-to-production tests on your Java applications

    Testing Java applications in production-like environments can mitigate potential failures and ensure high confidence in deployments. The open-source framework Testcontainers simplifies this by providing containerized resources at test time, ensuring consistent and portable testing setups. Key features include support for a wide range of containers (databases, messaging brokers, etc.), integration with popular testing frameworks like JUnit, and declarative configuration for easy maintenance. Testcontainers handles lifecycle management and includes built-in wait strategies to ensure reliable and reproducible tests.

  25. 25
    Article
    Avatar of mememondayMeme Monday·2y

    Why did the developer break up with their code?

    A humorous quip about a developer 'breaking up' with their code because it tests them instead of the other way around, accompanied by a relatable meme.