---
title: "Simple but powerful Apps Script Unit Test library &#8211; Desktop Liberation"
author: "Martin Hawksey"
date: 2022-05-25T12:16:00+00:00
modified: 2022-05-24T19:35:51+00:00
canonical_url: https://pulse.appsscript.info/p/2022/05/simple-but-powerful-apps-script-unit-test-library-desktop-liberation/
markdown_url: https://pulse.appsscript.info/p/2022/05/simple-but-powerful-apps-script-unit-test-library-desktop-liberation.md
categories:
  - "Intermediate"
  - "Library"
  - "Solutions"
  - "V8"
tags:
  - "@brucemcpherson"
  - "ramblings.mcpher.com"
featured_image: https://pulse.appsscript.info/files/2022/05/2378867408_4cc90791d6_c.jpg
description: "When you start developing more complex Google Workspace solutions like add-ons and Chat apps it's worth considering how you will test, debug and refactor your code. As noted in this post from Bruce Mcpherson the Apps Script community has published a number of different solutions/approaches to unit tests, a number of these featuring in Pulse.  This latest post from Bruce looks at the bmUnitTest library he has developed highlighting how it can be set up and used. "
---

# Simple but powerful Apps Script Unit Test library &#8211; Desktop Liberation

![Simple but powerful Apps Script Unit Test library &#8211; Desktop Liberation](https://pulse.appsscript.info/files/2022/05/2378867408_4cc90791d6_c.jpg)

> Image credit: [the JavaScript Code](https://flic.kr/p/4Cdjpj) CC-BY Dmitry Baranovskiy
> Unit testing your code with this Apps Script Unit test library as you go along will makes it easy to immediately catch errors, and keeping a running test repertoire ensures that you don’t break anything.

When you start developing more complex Google Workspace solutions like add-ons and Chat apps it’s worth considering how you will test, debug and refactor your code. As noted in this post from Bruce Mcpherson the Apps Script community has published a number of different solutions/approaches to unit tests, a number of these appearing in Pulse.  This latest post from Bruce looks at the bmUnitTest library he has developed highlighting how it can be set up and used.

Source: *[Simple but powerful Apps Script Unit Test library – Desktop Liberation*](https://ramblings.mcpher.com/gassnippets2/simple-unit-test-library/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2022/05/simple-but-powerful-apps-script-unit-test-library-desktop-liberation/](https://pulse.appsscript.info/p/2022/05/simple-but-powerful-apps-script-unit-test-library-desktop-liberation/)*
