{"id":26403533,"url":"https://github.com/fossamagna/gas-test-cli","last_synced_at":"2025-11-02T09:03:34.857Z","repository":{"id":38898138,"uuid":"68828051","full_name":"fossamagna/gas-test-cli","owner":"fossamagna","description":"CLI for gas-test","archived":false,"fork":false,"pushed_at":"2024-12-30T06:25:40.000Z","size":88,"stargazers_count":2,"open_issues_count":20,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T14:52:52.838Z","etag":null,"topics":["google-apps-script"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fossamagna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-21T14:57:18.000Z","updated_at":"2024-01-23T03:52:47.000Z","dependencies_parsed_at":"2022-09-13T18:52:04.880Z","dependency_job_id":"5881d16e-6956-455b-9a80-c2db579040af","html_url":"https://github.com/fossamagna/gas-test-cli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgas-test-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgas-test-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgas-test-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Fgas-test-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fossamagna","download_url":"https://codeload.github.com/fossamagna/gas-test-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244058704,"owners_count":20391151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-apps-script"],"created_at":"2025-03-17T15:34:14.932Z","updated_at":"2025-11-02T09:03:34.815Z","avatar_url":"https://github.com/fossamagna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gas-test-cli [![NPM version][npm-image]][npm-url]  [![Build Status][travis-image]][travis-url]\n\n\u003e CLI for [gas-test](https://github.com/fossamagna/gas-test)\n\n## Installation\n\nFirst, install gas-test-cli using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).\n\n```sh\nnpm install gas-test-cli --save-dev\n```\n\n## Usage\n\n1. Get Credentials for Google Apps Script Execution API.\n  ```sh\n  $(npm bin)/gas-test auth \u003cclient_secret.json\u003e\n  ```\n2. Create settings file.\n\n  Note: Change to `scopes` values used by your test script.\n\n  gas-test.json:\n  ```\n  {\n    \"scriptId\": \"\u003cYOUR_SCRIPT_ID_FOR_TEST\u003e\",\n    \"scopes\": [\"https://www.googleapis.com/auth/drive\"]\n  }\n  ```\n\n3. Build test code.\n\n   Options:\n    - `-t`, `--typescript`: transpile with TypeScript\n    - `-b`, `--babel`: transpile with babel\n\n  ```sh\n  $(npm bin)/gas-test --typescript build test/*.ts -o built.js\n  ```\n\n4. Push test code via Google Apps Script API\n\n  ```sh\n  $ clasp push\n  ```\n  [clasp](https://github.com/google/clasp) is useful in order to push script to project on Google.\n\n5. Run test code using gas-test via Execution API.\n\n  ```sh\n  $(npm bin)/gas-test run -c \u003cpath to credentials\u003e -s \u003cpath to gas-test.json\u003e -o \u003cpath to output\u003e\n  ```\n\n## License\n\nApache-2.0 © [fossamagna](https://github.com/fossamagna)\n\n[npm-image]: https://badge.fury.io/js/gas-test-cli.svg\n[npm-url]: https://npmjs.org/package/gas-test-cli\n[travis-image]: https://travis-ci.org/fossamagna/gas-test-cli.svg?branch=master\n[travis-url]: https://travis-ci.org/fossamagna/gas-test-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Fgas-test-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffossamagna%2Fgas-test-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Fgas-test-cli/lists"}