Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Courses / Programming

        Software testing course: write tests that catch bugs

        Practice software testing in your browser, with every exercise checked the moment you finish it.

        Each task gives you a small Python module and its contract. You write the pytest tests, and they run against the correct code and against versions with one realistic bug each. Your tests pass only if they accept the right code and catch every bug. The first unit covers exact assertions, equivalence partitioning, boundary value analysis and error paths.

        Start lesson 1Test your levelPractice the first unit of every course. No account needed.

        Free resources:All free resources

        • 5lessons
        • 24checked exercises
        • FreeFirst unit: Test design · 5 lessons
        • BrowserNothing to install

        Questions about the software testing course

        Is the software testing course free?

        The first unit, Test design, is free and needs no account: 5 lessons and 24 checked exercises. The whole course is in the One Course plan, $17.99 a month at the full US dollar price, and in All Access. Many countries pay less.

        What do I need to start the software testing course?

        Only a browser. Every exercise runs on The Work Gym and is checked as you finish it, so there is nothing to install or set up.

        How long is the software testing course?

        5 lessons and 24 checked exercises, about 2 hours of practice in all.

        What does the software testing course prepare you for?

        It prepares you for developer and QA testing tasks.

        What you will be able to do

        • Write assertions that compare exact results, so a wrong answer cannot pass
        • Split inputs into equivalence classes and test one value from each
        • Test each limit and one step either side, where off-by-one bugs live
        • Check that bad input is refused with the right error and leaves the state unchanged

        Who it is for

        You write code and your tests miss bugs
        Every task shows whether your tests catch a realistic mistake, which a passing suite alone never tells you.
        You are moving into QA or test engineering
        You practice test design techniques such as equivalence partitioning and boundary value analysis on code that runs.
        You know pytest syntax but not what to test
        The tasks are about choosing inputs and expected values. The Python for software engineers course covers fixtures, mocks and API tests in more depth.

        What you can practice free

        Unit 1, Test design: 5 lessons and 24 checked exercises, with no account or card.

        Start the free unit

        The rest of the course opens with a One Course or All Access plan. See plans and prices

        Keep going in Software testing

        Choose access here. Your course is already selected.

        One Course

        Every lesson, project and mock exam in Software testing.

        $17.99/ month

        Billed monthly. Cancel any time.

        Or $54.99 a year, save 75%

        All Access

        Every course, exam and project, plus the Interview Hub.

        $29.99/ month

        Billed monthly. Cancel any time.

        Or $139.99 a year, save 61%

        Full price in US dollars.

        Learn to design tests that fail when the code is wrong. Each task gives you a small Python module and its contract. You write a pytest test module, and it runs against the correct code and against versions with one realistic fault each: an off-by-one limit, a missing class, an error that changes state before it is raised.

        The first unit covers exact assertions, equivalence partitioning, boundary value analysis and error paths, and ends in a practice set on a workshop booking module. pytest 9.0.2 runs in your browser, and hidden checks change the module's constants, so tests built on copied numbers fail.

        Beginner

        FreeNo account or card needed. Every lesson in this unit is yours to practice.

        Test design

        Exact assertions, equivalence classes, boundary values and error paths, written as real pytest tests.

        5 lessons

        Coming next

        pytest in depth

        Collection and runner outcomes, Fixtures and independent tests, Parametrized cases, Project: repair intake suite, Practice: pytest

        Test doubles and scope

        Stubs, fakes and mocks, Interaction assertions, Environment and resource cleanup, Case: a misleading booking fake, Practice: isolation

        TypeScript suites with Mocha

        Real Mocha and TypeScript, Promise and rejection tests, Lifecycle hooks and fixtures, Runtime and static contracts, Practice: TypeScript tests

        Database integration

        Database fixtures and constraints, Transactional test isolation, API responses and persisted state, Project: service repository tests, Practice: database integration

        Generated cases and reliable tests

        Properties and invariants, Clocks and controllable time, Shared-state and order failures, Statement and branch coverage, Curated mutation testing

        How the checking works

        A test suite proves something only when a plausible mistake makes it fail. So every task here comes with two broken versions of the code, each with one bug a developer could plausibly write: < where the contract says <=, a refund left out of a total, a balance changed before an error is raised. Your suite must accept the correct code and catch both bugs through an assertion. A crash, a skipped test or a suite with no tests never counts.

        Common questions

        Do I need to install Python or pytest?

        No. pytest 9.0.2 runs in your browser, so nothing is installed on your computer.

        How are my tests checked?

        They run against the correct module and against two versions with one bug each. Your suite has to pass the first and fail both of the others through an assertion. Hidden checks change the module's constants, so copied numbers fail.

        Is it free?

        The first three lessons are free and need no account. The rest of the course opens with a One Course or All Access plan, and the pricing page shows every plan and its price.

        What does the course cover now?

        5 lessons and 24 exercises on test design. Units on pytest fixtures, test doubles, TypeScript tests, database integration and test reliability are planned and listed on this page.

        Is this an ISTQB course?

        No. The course teaches test design by writing tests that run. It does not follow a certification syllabus.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.