UNIT TESTING

1 day

Protect your code from regressions as it changes with fast-running automated tests


New Year's Offer

Training bookings confirmed by January 31st are HALF-PRICE

Confirm any Codemanship course booking by January 31st 2026, to be delivered remotely before May 31st, and get 50% off



Fast-running automated unit tests are the foundation on which great code is built, and an absolute must for any team that needs to sustain the pace of delivery, both with and without AI coding assistants.

This action-packed 1-day workshop introduces developers to fundamental unit testing concepts and practices, using the most popular frameworks for C#, Java, JavaScript, Python and PHP developers.

With an emphasis on the practical, this workshop is packed full of hands-on demonstrations (20%) and exercises (80%). Participants learn together with pair and mob programming.

Available Online & On-Site

High-quality instructor-led training remotely for groups of up to 12 worldwide and in-person for groups of up to 20 in the UK & EU.

In This Workshop...

* Why automate unit tests?
* Anatomy of a unit test
* Arrange-Act-Assert
* Test methods & test fixtures
* Test suites
* The xUnit unit test framework pattern

* Installing
* Setting up a test project
* Creating test fixtures
* Writing test methods
* Making assertions
* Running tests in your IDE and at the command line
* Advanced Features     
    - Parameterised tests
    - Fluent assertions

* Stubs, Mocks & Dummies
* Stubbing external dependencies
* Tell, Don't Ask
* Testing object interactions with mock objects

* Red, Green, Refactor
* Triangulating

Teams are learning that AI-assisted coding without a good suite of fast-running tests is a very bad idea.

* Clarifying prompts with test cases
* Generating usable unit tests with AI
* Testing your tests with mutation testing

Mobirise

Languages

Pricing

Prices are per person, and do not include travel expenses and VAT.

Pricing Band £ (remote*) £ (on-site**)
First 4-6 people 600 300 until Jan 31st 750
Next 7-12 people 450 225 until Jan 31st 600
Next 13-20 people* N/A 450
Additional people on the day 600 750

Minimum number for all training is 4

* Maximum number for online training is 12

** UK & EU only. Maximum number for on-site training is 20

FAQ

This training workshop is aimed at JavaScript, Python, C#, PHP and Java developers with at least one year's experience programming in their chosen language. It's often attended by technical leaders who wish to keep their code craft skills up-to-date, too.

You will need a suitable computer with your favourite JS, PHP, Python, C# or Java editor/IDE installed. On-site courses will require a room large enough to comfortably accomodate all participants, good, reliable Internet access (Wi-Fi), and a data projector or suitably large TV (with HDMI input) that will allow participants to read code from the back of the room. You will find a pen and paper handy.

Online training is available whereever you are, pretty much. (There are a few countries it's sadly not possible to do business with, of course.) Onsite training is available across the UK, Europe and many other regions. Ask us.

9/10 times, the trainer will be Codemanship founder and course author Jason Gorman. Jason has 38 years' programming experience and three decades of professional experience as a developer, technical lead and software architect. He's run hundreds of code craft training workshops over the last 20 years, and is a very experienced teacher and mentor. If, for any reason, Jason isn't available for your workshop, we'll inform you well in advance and offer you a trainer of similar industry seniority.

Yes. You will most definitely be writing code in this workshop. Business analysts, testers, project managers etc may find it useful to sit in and observe -at no charge - if they want to gain an understanding of Test-Driven Development and how it fits into the overall software development cycle, but this is 100% a hands-on workshop.

Since 2009, we've delivered training for developers working in C++, Swift, Go, Kotlin, Groovy, Ruby and many other languages. Ask us about customised courses.