{"id":15014172,"url":"https://github.com/gitteri/newman-reporter-basictext","last_synced_at":"2025-04-09T19:23:09.712Z","repository":{"id":39852112,"uuid":"116997494","full_name":"gitteri/newman-reporter-basicText","owner":"gitteri","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-24T19:12:05.000Z","size":52,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T20:38:24.975Z","etag":null,"topics":["newman","postman","reporter","testing"],"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/gitteri.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}},"created_at":"2018-01-10T18:50:43.000Z","updated_at":"2023-05-09T14:30:44.000Z","dependencies_parsed_at":"2022-09-14T19:41:02.631Z","dependency_job_id":null,"html_url":"https://github.com/gitteri/newman-reporter-basicText","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitteri%2Fnewman-reporter-basicText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitteri%2Fnewman-reporter-basicText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitteri%2Fnewman-reporter-basicText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitteri%2Fnewman-reporter-basicText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitteri","download_url":"https://codeload.github.com/gitteri/newman-reporter-basicText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095828,"owners_count":21046920,"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":["newman","postman","reporter","testing"],"created_at":"2024-09-24T19:45:17.320Z","updated_at":"2025-04-09T19:23:09.689Z","avatar_url":"https://github.com/gitteri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic text reporter for Newman\n\n## Installation\nRun `npm install --save newman-reporter-text`\n\n## Usage\nIn order to use this custom reporter, simply add 'text' to the list of reporters.\n\n### Options\nThis text reporter also accepts three options.\n* export: If you'd like newman to output the results of the collection to a file, enter the file name under the 'export' property.\n* cli: If you'd like newman to output the results of the collection to stdout, set the 'cli' property as 'true' (string not bool).\n* rolling: If you'd like newman to output the results to a new file based on the current day set this property to 'true'\n\nNote that you do not have to do `require('newman-reporter-text')` anywhere as newman will automatically require the package when the collection is run.\n\n```\nnewman.run({\n    collection: require('./tests.postman_collection.json'),\n    reporters: 'text',\n    reporter: {\n        'text': {\n            // Take output and save it to file\n            export: `./logs/${startTime}.txt`,\n            // Output to rolling file based on current day\n            rolling: 'ture',\n            // Output the results to stdout\n            cli: 'true'\n        }\n    }\n}, function (err) {\n    if (err) { throw err; }\n});\n```\n\n```\nnewman run ./tests.postman_collection.json --reporter text --reporter-text-export './logs/output.txt' --reporter-text-rolling 'true' --reporter-text-cli 'true'\n```\n\n## Example Output\n```\n\u003c Start collection run\n\u003c ✔ Assertion passed! [1 / 3] \"User successfully logged in\" (duration 312) ms\"\n\u003c ✔ Assertion passed! [2 / 3] \"User profile should exist for user\" (duration 229) ms\"\n\u003c ✗ Assertion failed! [3 / 3] \"No results in elastic search (ADMIN view)\" (duration 108) ms\"\n\u003c Collection run completed for collection: 3 tests executed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitteri%2Fnewman-reporter-basictext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitteri%2Fnewman-reporter-basictext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitteri%2Fnewman-reporter-basictext/lists"}