UNIT TESTING

1 day

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


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.
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 small teams and in-person for teams small and large

* Currently, all training is delivered remotely. Onsite training will resume in 2022

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

* What makes code “legacy”?
* A process for making legacy code unit testable
* The “boy scout” rule

Mobirise

Languages

Pricing

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

Pricing Band£
First 4-6 people (online)475
Next 7-12 people (online & onsite)350
Next 13-20 people (onsite only)225
Additional people on the day475

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.