ユニットテストの必要性を感じてきたので調べてみた。 Google Apps Script用Qunitというのがあるらしいので、使ってみます。 まずはライブラリに追加 MxL38OxqIK-B73jyDTvCe-OBao7QLBR4j ライブラリダイアログに表示されたらバージョンを4にして保存。 次にdoGetメソッドを書く function doGet( e ) { QUnit.urlParams( e.parameter ); QUnit.config({ title: "Unit tests for my project" }); QUnit.load( myTests ); return QUnit.getHtml(); }; QUnit.helpers(this);