{
    "mode": "man",
    "parameter": "tape",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/tape/1/json",
    "generated": "2026-09-03T15:51:19Z",
    "synopsis": "tape [-r module] [file] [file ...]",
    "sections": {
        "NAME": {
            "content": "tape — tap-producing test harness for node and browsers\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tape [-r module] [file] [file ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "tape is a tap-producing test harness for node and browsers requiring only a few line of code.\nIt  can  be  used for unit and integration testing.  tape will execute test described by file\noption. File are interpreted using glob module by default. You may therefore  need  to  quote\nfile  in  order  to  avoid globbing by shell.  Tests are written in pure javascript, so tests\ncould be run using Node.js.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-r, --require",
                    "content": "load one or more modules before running any tests.  Please  note  that  all  modules\nloaded  using  the  -r  flag  will run before any tests, regardless of when they are\nspecified. For example, tape -r a b -r c will actually load a and c  before  loading\nb, since they are flagged as required modules.\n",
                    "flag": "-r",
                    "long": "--require"
                },
                {
                    "name": "-i, --ignore",
                    "content": "ignore  tests  from  certain folders and/or files are not intended to be run. It de‐\nfaults to `.gitignore` file when passed with no argument. For example:\ntape -i .ignore /*.js`\n",
                    "flag": "-i",
                    "long": "--ignore"
                },
                {
                    "name": "--no-only",
                    "content": "This is particularly useful in a CI environment where an \"only test\" is not supposed\nto go unnoticed. By passing the `--no-only` flag, any existing  \"only  test\"  causes\ntests to fail:\ntape --no-only /*.js`\nAlternatively,  the  environment  variable  `NODETAPENOONLYTEST`  can  be set to\n`true` to achieve the same behavior; the command-line flag takes precedence.\n",
                    "long": "--no-only"
                }
            ]
        },
        "METHODS": {
            "content": "The assertion methods in `tape` are heavily influenced or copied from the  methods  in  node-\ntap.\nvar test = require('tape')\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "tape 'tests//*.js'\ntape -r './my/local/module' 'tests//*.js'\ntape -r 'babel-register' 'tests//*.js'\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "/usr/share/doc/node-tape/readme.markdown.gz, tap(1), nodejs(1), glob(7)\n\n8/4/17                                        tape(1)",
            "subsections": []
        }
    },
    "summary": "tape — tap-producing test harness for node and browsers",
    "flags": [
        {
            "flag": "-r",
            "long": "--require",
            "arg": null,
            "description": "load one or more modules before running any tests. Please note that all modules loaded using the -r flag will run before any tests, regardless of when they are specified. For example, tape -r a b -r c will actually load a and c before loading b, since they are flagged as required modules."
        },
        {
            "flag": "-i",
            "long": "--ignore",
            "arg": null,
            "description": "ignore tests from certain folders and/or files are not intended to be run. It de‐ faults to `.gitignore` file when passed with no argument. For example: tape -i .ignore /*.js`"
        },
        {
            "flag": "",
            "long": "--no-only",
            "arg": null,
            "description": "This is particularly useful in a CI environment where an \"only test\" is not supposed to go unnoticed. By passing the `--no-only` flag, any existing \"only test\" causes tests to fail: tape --no-only /*.js` Alternatively, the environment variable `NODETAPENOONLYTEST` can be set to `true` to achieve the same behavior; the command-line flag takes precedence."
        }
    ],
    "examples": [
        "tape 'tests//*.js'",
        "tape -r './my/local/module' 'tests//*.js'",
        "tape -r 'babel-register' 'tests//*.js'"
    ],
    "see_also": [
        {
            "name": "tap",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tap/1/json"
        },
        {
            "name": "nodejs",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/nodejs/1/json"
        },
        {
            "name": "glob",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/glob/7/json"
        }
    ]
}