Best of TestingAugust 2022

  1. 1
    Article
    Avatar of devdojoDevDojo·4y

    console.log alternatives you didn't know

    Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used to measure time. It's used to check if a condition is true. If it's not, it will throw an error.

  2. 2
    Article
    Avatar of logrocketLogRocket·4y

    How to automate API tests with Postman

    Writing API tests with Postman is a platform that provides a complete set of tools for building, testing, documenting, and mocking APIs. We'll explore how to write automated functional and integration tests for your APIs that will run in a CI/CD pipeline. We’ll create a collection called Delivery-API Tests where we are simple tests, but the goal is to understand the concept of testing in Postman.

  3. 3
    Article
    Avatar of hashnodeHashnode·4y

    Unit testing with Jest, React, and TypeScript

    Software testing is critical to lower the chances of our program failing by running tests with the end-user in mind. Testing-library/react is a testing utility tool that's built to test the actual DOM tree rendered by React on the browser. The goal of the library is to help you write tests that resemble how a user would use your application.

  4. 4
    Article
    Avatar of communityCommunity Picks·4y

    Why You Should Choose NestJS as Your Backend Framework

    Open-source NestJS is an open-source project with 47,000 stars on GitHub. The framework needs to be fast and able to handle concurrent requests at scale. NestJS’s built-in modules system naturally results in a neat separation of concerns.

  5. 5
    Article
    Avatar of communityCommunity Picks·4y

    Getting Started with Vitest

    Vitest is Jest-compatible and comes with out-of-the-box ESM, Typescript, and JSX support. It uses the Vite dev server to transform your files during testing and listens to the same configuration of your app. It is extensible using the same plugin API as Vite and 'notification--slide' The component renders the correct style. The component emits an event when the close button.

  6. 6
    Article
    Avatar of hashnodeHashnode·4y

    TDD (Test Driven Development) Basics Tutorial with TypeScript/React

    The 4 steps are what I think are what are needed in learning TDD. In the previous test, I actually omitted some important setups. This example app uses "pseudo" API to call data. So it runs perfectly on testing environment.

  7. 7
    Article
    Avatar of habrhabr·4y

    Designing Converting Landing Pages

    The social proof block is common for landing pages, but not every example is a good one. Use a descriptive, not a salesy hero header, as early on the page as possible. Don’t Our Scooter Professor will give you the best service possible.

  8. 8
    Article
    Avatar of hashnodeHashnode·4y

    Introduction to Docker

    Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Dockerfile builds a docker image and that image contains all the project's code. You can run that image to create as many docker containers as you want.

  9. 9
    Article
    Avatar of infoworldInfoWorld·4y

    Angular 15 promises greater simplicity

    Angular 15 is a planned upgrade to Google’s TypeScript framework for web development. Standalone component APIs move to stable status with the new release. Other capabilities planned for Angular 15 include Image directives for improved web page performance, with better scores for Core Web Vitals.

  10. 10
    Article
    Avatar of rubylaRUBYLAND·4y

    Building a Laravel App with TDD

    A food ordering app will only have the following features: Search for food Add food to cart Submit order. Calling the remove() method in the Cart class removes an item from the user’s cart session. Running a Test To run tests, execute the following command; this will run all the tests using the PHP Unit test runner: vendor/bin/phpunit This will return the following output.

  11. 11
    Article
    Avatar of gcgitconnected·4y

    5 Tips To Design For Multi-Tenancy Architecture

    Multi-Tenancy Architecture refers to a system which allows multiple instances of an application operate in a shared environment. Features built need to be generic and extensible for all tenants. Design needs to include mandatory tenantId attribute in all requests. Customizations should be introduced as configuration options that are available to all tenants.

  12. 12
    Article
    Avatar of infoworldInfoWorld·4y

    Angular 15 promises to simplify development

    Angular 15 is a planned upgrade to Google’s TypeScript framework for web development. Standalone components promise to help with organization, reduce boilerplate, and make applications easier to build. Other capabilities planned for Angular 15 include: Image directives for improved web page performance.

  13. 13
    Article
    Avatar of do_communityDigitalOcean Community·4y

    How To Run End-to-End Tests Using Playwright and Docker

    Playwright is a great tool for end-to-end testing across browsers, including Chromium, Firefox, and Webkit. Playwright has features like auto-support interaction with browsers, so you don't have to install the web drivers manually. To run Playwright, you need an appropriate environment, such as type yes or press enter to confirm the setup for the package. The flag --save-dev is used.

  14. 14
    Article
    Avatar of lnLaravel News·4y

    Building your own Laravel Packages

    In this tutorial, I will walk through how to start and publish a new Laravel package. We will build a package with an artisan command that will allow us to create Data Transfer Objects in Laravel and PHP 8.1. Alongside this, we will also have a Facade for hydrating Data Transfer objects, herein referred to I usually use the command line composer init as it is an interactive way to set this up.

  15. 15
    Article
    Avatar of glcGolang News·4y

    Substrings vs. Regular Expressions – Benchmarking in Golang

    In this third part of a four-part series, we’ll cover benchmarking in Go using our text filtering tool as a test subject. Using these tools, we can garner insights on whether the tool runs faster (under these scenarios) using substring or pattern matching.

  16. 16
    Article
    Avatar of hashnodeHashnode·4y

    Next.js visual regression testing made easy

    Next.js visual regression testing made easy - so does the UI. In this tutorial we will learn how to - setup a new next.js app - use lost-pixel to enable CI visual regression tests. To set up the first tests, you need to add the lost- pixel.config.ts file into your tsconfig in.

  17. 17
    Article
    Avatar of vsVisual Studio Blog·4y

    Visual Studio 2022 17.3 is now available!

    NET Multi-platform App UI has graduated from preview in Visual Studio and is now available on Windows. Pick Azure as the deployment target and Azure Container Apps will be one of the options available to you. Live Unit Testing now scales better for larger solutions by making the builds scoped to only what is needed and building projects in parallel.

  18. 18
    Article
    Avatar of communityCommunity Picks·4y

    Why don’t you start writing tests?

    Let’s kick off our testing journey with a Laravel application. Please append the following code to the UserTest.php file. We pass invalid data for the form inputs and confirm that there is a redirect response.