Test Driven Development (TDD) Principle Explained - Testing in Android

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • Get my premium course to build industry-level Android apps & Ktor backends. 🚀
    ahmed-guedmiou...
    And take your skills to the next level and become ready for the Android industry ✅
    In this video you will learn about the Test Driven Development (TDD) principle in software development. As well as other good practices to follow when writing tests.
    Follow me on Instagram:
    / ahmed_guedmioui
    #androidtesting #unittesting #kotlin #androidstudio #jetpackcompose #java #mobiledevelopment #androiddeveloper

КОМЕНТАРІ • 6

  • @ahmed_guedmioui
    @ahmed_guedmioui  Місяць тому

    Get my premium course to build industry-level Android apps & Ktor backends. 🚀
    ahmed-guedmioui.thinkific.com/courses/build-industry-level-apps-and-ktor-backends
    And take your skills to the next level and become ready for the Android industry ✅

  • @henrik908
    @henrik908 3 місяці тому +3

    Thank you for the video 🤜🏻🤛🏻.

  • @ophariom12
    @ophariom12 3 місяці тому +1

    Summary
    * Test Driven Development (TDD) is a software development approach where you write the test cases before you write the actual code.
    * This helps to ensure that your code is functioning properly and avoids bugs and crashes.
    * Here's how TDD works:
    * First, you create the function signature, which defines the name of the function and the parameters it takes.
    * Then, you write the test cases for the function. These test cases should test both positive and negative scenarios.
    * Once you have written the test cases, you can then implement the code for the function.
    * After you have implemented the code, you should run the test cases again. The test cases should now pass.
    * If the test cases fail, then there is a bug in your code and you will need to fix it.
    * Here are some other good practices for writing tests:
    * Isolate your tests as much as possible. This means that each test should only test one function.
    * Test both positive and negative scenarios. Positive scenarios are when the user inputs valid input. Negative scenarios are when the user inputs invalid input.
    * Avoid flaky tests. Flaky tests are tests that don't give consistent results. You want your tests to pass all the time.

  • @زيد_اليماني
    @زيد_اليماني 3 місяці тому

    Great video 🔥

  • @ophariom12
    @ophariom12 3 місяці тому

    Thnakyou bro 😍

  • @kinggrey2511
    @kinggrey2511 3 місяці тому

    Can you make a video on stripe or payments in general also connection to a database such as appwrite or mongodb