Skip to content
A unit testing framework for Google Apps Script, loosely based on python unittest.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GwTest
GwTest_test
LICENSE
README.md

README.md

GwTest

A unit testing framework for Google Apps Script, loosely based on python unittest.

Google Drive

GwTest is also available to be accessed directly on Google Drive:

Usage

GwTest is used to test itself; the suite available in GwTest_test provides some examples of how to use the testing framework.

The best way to make use of GwTest is to use it add it to your project via Resource > Libraries with the project key: M1PpVYsD2R68uNDajUcXNca_fO5HBBZ0R

OAuth Scopes

GwTest needs certain OAuth security permissions to be run:

  • drive: FileTestCase needs to be able to create (and delete) files in Google Drive in order to provide temporary files for use in tests.
  • spreadsheets: SpreadsheetTestCase needs to be able to create, delete, and manipulate spreadsheets on Google Drive in order to provide a temporary spreadsheet for use in tests.
You can’t perform that action at this time.