Best of TestingSeptember 2022

  1. 1
    Article
    Avatar of devgeniusDev Genius·4y

    How to write maintainable JavaScript code in 2023 — Web or Node.js

    Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before implementing complex features. Use ESLint and Prettier together and you can focus on what your code does. If you use prettier, it will join multi-line breaks.

  2. 2
    Article
    Avatar of medium_jsMedium·4y

    6 Best Practices for Software Delivery

    The Testing Pyramid is a great starting point, and the Testing Pyramid to Fail Fast and Reduce Risk. The longer you leave feedback, the most costly it will become, you start having to interrupt people from other work, and after weeks/months pass by, it’s more likely that people and knowledge will leave.

  3. 3
    Article
    Avatar of itnextITNEXT·4y

    Front-end Testing Principles

    For the Front-End we need to focus on only two targets for our tests: the end-user who interacts with your component in the browser and the developer who renders and uses your component. Writing your tests in isolation will guide us to a better way to write your tests to improve their reliability, simplify the code, and increase confidence.

  4. 4
    Article
    Avatar of syncfusionSyncfusion·4y

    JavaScript API Mocking Techniques

    API Mocking Mocking is a client-side mocking framework that mocks the API in the browser by using the Pretender library. It has many built-in tools: serializer, route handlers, database, models, fixtures, and factories. It enables emulating dynamic behavior between the front end and back end, rather than mocking the same response over and over again by hitting an endpoint.

  5. 5
    Article
    Avatar of medium_jsMedium·4y

    How we reduced our annual server costs by 80% — from $1M to $200k — by moving away from AWS

    Prerender saved $800k by removing their reliance on AWS and building in-house infrastructure Combined with AWS, we had already cut our expenses by 22%. The testing phase was crucial to make sure the following processes would run smoothly. After testing whether Prerender pages could be cached in both S3 and minio, we slowly diverted traffic away from AWS S 3 and towards minio.

  6. 6
    Article
    Avatar of communityCommunity Picks·4y

    Software development anti patterns. How to ruin your product.

    Software development anti patterns can be a proven way to be unsuccessful that can be observed over and over again. Good people do not join when they feel they could be micro managed. Good people leave when they are being micro managed.

  7. 7
    Article
    Avatar of thisdotThis Dot·4y

    GitHub Actions for Serverless Framework Deployments

    Serverless Framework does all its configuration via a serverless.yml file. However, the framework officially supports alternative formats including.json,.js, and.ts. We decided to move all of our CI/CD to GitHub Actions. We had to make the following changes to our actions and configuration to get everything 100% working: serverless to get all of the serverless service. The app and org variables make it so it is required to have a valid dashboard login. This meant we couldn’t have a. serverless configuration.

  8. 8
    Article
    Avatar of auth0Auth0·4y

    Testing React Applications with Jest

    MockingJest allows you to mock objects in your test files. You can turn on automatic mocking with automock which will mock every component/object that the component is part of your project. For the first test, we'll write a simple test that ensures that Jest was set up correctly and that it can run a test successfully.

  9. 9
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    What is Software Testing? A Beginner's Guide

    Software testing is a complex topic and can be a bit difficult to understand. There are various methods you can use to test your code, and each testing method has different requirements. The version of the code/software for this phase of testing is released to a limited number of users for testing in a real-time scenario.

  10. 10
    Article
    Avatar of logrocketLogRocket·4y

    Unit testing with React and Cypress

    Unit testing with React and Cypress is a modern, automated testing suite. Cypress provides an API and methods to interact with the UI of the application. The commands available to us will have an inbuilt method that we can invoke in our test blocks.

  11. 11
    Article
    Avatar of heliosHelios·4y

    Microservices testing: traditional solutions vs. modern strategies

    Helios is a developer platform designed specifically for testing and troubleshooting microservices. By using Helios, developers can go back to relying on testing as an essential and trustworthy step for delivering production-ready code. Helios provides granular visibility into the entire microservices architecture and into each service. Their value is defined globally and can be easily replaced.

  12. 12
    Article
    Avatar of pointerPointer·4y

    Technical Evaluation of a Startup

    The Company engineering team consists of about eight developers along with Alice and Dennis. Dennis bridges this direction to the engineering team by providing research and detailed user stories.

  13. 13
    Article
    Avatar of communityCommunity Picks·4y

    Why Every Developer Should Employ Test Driven Development

    Test-Driven Development (TDD) has gained popularity because it works to resolve the speed vs quality dilemma. Using TDD for software development is a more balanced approach emphasising three primary tasks: coding, testing, and designing. For each feature, I write 20-25 tests to cover all possible use Alternative option: a test framework abstracted.

  14. 14
    Article
    Avatar of bitBits and Pieces·4y

    Automated Testing React Components Made Easy With This Secret

    Automated Testing React Components Made Easy With This Secret Here is a trick that will allow you to test your React applications quickly. We will go through how changing your mindset and using simple steps can lead to the resilient testing of your apps. Why do most developers think testing is not easy?

  15. 15
    Article
    Avatar of redwoodjsRedwoodJS·4y

    Redwood 3.0.0 is now available!

    Redwood can now fetch data from your GraphQL API at build-time. Fastify v4.0 bumps the version of Prisma from v3.1.0. WebAuthn adds a new cookie, which has a separate expiration date from the regular session cookie. If the user comes back after 24 hours they simply scan their fingerprint again.

  16. 16
    Article
    Avatar of algAlgolia Blog·4y

    How to build a simulator for any feature — Part 1: Unit testing

    Unit tests are just little pieces of code that verify that things are functioning as they should. It’s not deterministic (that is, the function doesn’t always return the same output for a given input, and it contains a few side effects that reach outside of the scope of the function. How can we fix this?

  17. 17
    Article
    Avatar of glcGolang News·4y

    A practical tutorial about end-to-end testing with Golang

    A practical tutorial about end-to-end testing with Golang Unit tests form a crucial part of modern software testing. A case study shows how these were added to an open-source project so that you can adapt the approach and techniques for your own work. The perils of unit testing are a lack of context.

  18. 18
    Article
    Avatar of dzDZone·4y

    Design Thinking in Software Testing

    Design Thinking is a powerful paradigm that software testers and QA professionals can use to create more user-centric software. Design thinking can have a profound impact on the software development and testing teams in both agile and waterfall modes of development. In agile development, design thinking helps the team to focus on the user experience and the customer journey.

  19. 19
    Article
    Avatar of testdrivenTestDriven.io·4y

    Pytest for Beginners

    Pytest for Beginners Automated testing is an essential part of your development process. Well-written tests decrease the possibility of something breaking in a production environment. Tests also help you cover marginal cases and make refactoring easier. In our example app, pytest found 8 tests, and they all passed. At bottom of message, you can see how many tests passed/failed. Failing Test Your test won't always pass on the first try. In our own app, you could see how much tests were found. For more information, click here.

  20. 20
    Article
    Avatar of circleCircleCI·4y

    Automate testing for a Vue.js application

    Vue.js is a progressive framework for building reusable components for the web user interface. In this tutorial, I will lead you through building a simple listing application that shows the names and roles of users. You will also configure a continuous integration pipeline for automating testing. In the tutorial, you will alsoConfigure a continuous Integration pipeline forAutomating testing. For more information on how to use Vue and how to build the application.

  21. 21
    Article
    Avatar of curiosumCuriosum·4y

    Testing React Applications

    React Testing Library is a handy utility that adds APIs for working with React components. Next.js doesn't come with them out-of-the-box yarn add. It runs your testing scenarios inside a browser, which means that you can easily test your application as a whole. Cypress tests require having your development server running in the background, thankfully package named start-server-and-test does it automatically. Cypress and Playwright offer very similar functionalities.