Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.36 KB

File metadata and controls

49 lines (35 loc) · 1.36 KB
layout default
keywords
comments false
title Lab - Unit Tests
description Now for the best part - adding unit tests!
author
title title_url external_url description
About Author
#
true
Facundo is a Cloud Solutions Architect at New Signature. He enjoys helping clients with architecture, containers/orchestration, and stream lining development processes.
micro_nav true
page_nav
prev
content url
Characterization Tests
/lab-characterization

Overview

Now that the source code is cleaner, start adding some unit tests. Run your characterization and newly created unit tests often.

Useful Packages

Make some unit tests!

Start with ProductsController.Get

Know that you know some of the characteristics of the code and how it behaves and you have refactored it using well-known practices. Add some unit tests for the test cases you do know. It's ok to keep refactoring, it didn't have to be perfect the first time.

Run your tests often.

Stretch Goal

  • Refactor your unit tests simple to read
  • Add unit tests for the other API calls (If you have supported characterization tests)