{"id":29377272,"url":"https://github.com/froots/snippetron","last_synced_at":"2025-07-09T23:32:22.509Z","repository":{"id":3635347,"uuid":"4702071","full_name":"froots/snippetron","owner":"froots","description":"Example app for ScotlandJS talk on outside-in BDD","archived":false,"fork":false,"pushed_at":"2012-06-26T06:38:19.000Z","size":163,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-08T15:39:37.778Z","etag":null,"topics":[],"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/froots.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":"2012-06-18T14:49:35.000Z","updated_at":"2024-04-08T15:39:37.779Z","dependencies_parsed_at":"2022-08-19T04:21:08.900Z","dependency_job_id":null,"html_url":"https://github.com/froots/snippetron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/froots/snippetron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fsnippetron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fsnippetron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fsnippetron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fsnippetron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froots","download_url":"https://codeload.github.com/froots/snippetron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fsnippetron/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505231,"owners_count":23618906,"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":[],"created_at":"2025-07-09T23:30:30.267Z","updated_at":"2025-07-09T23:32:22.484Z","avatar_url":"https://github.com/froots.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Snippetron\n\nThis is an example app for my talk \"Testing your Backbone from the outside-in\" given at ScotlandJS in June 2012.\n\nFunctionally, all it does is allow a snippet to be saved, and a success message to be displayed when the server has successfully completed the save.\n\nThere are very simple examples of acceptance / functional tests using both CasperJS and Cucumber.js / Zombie and unit tests using BusterJS.\n\n### Pre-requisites\n\n* [Node.js](http://nodejs.org/) with NPM\n* [PhantomJS](http://phantomjs.org/)\n* [CasperJS](http://casperjs.org/)\n\n### Installation\n\n* Clone the project\n* `\u003e cd` to the project directory\n* `\u003e npm install` to install dependencies locally from `package.json`\n* `\u003e npm link`\n\n### Running the app for acceptance tests\n\nBoth CasperJS and Cucumber.js acceptance tests require the app to run. Start the app server with:\n\n      \u003e supervisor app.js\n\n[Supervisor](https://github.com/isaacs/node-supervisor) allows hot code reloading of Node.js applications without restarting the web server.\n\n### Running tests\n\n#### CasperJS \u0026 PhantomJS\n\nThere are 2 very simple acceptance tests using CasperJS, a scripting, testing and navigation utility for the PhantomJS headless web browser in `test/functional`.\n\nTo run tests:\n\n      \u003e casperjs test test/functional\n\n#### Cucumber.js \u0026 Zombie\n\nThere are 2 very simple cucumber.js scenarios that can be run. These use the zombie headless browser. Features are in the `features` directory, along with step definitions and cucumber.js setup.\n\nTo run the scenarios:\n\n      \u003e cucumber.js\n\n#### Buster unit tests\n\nThere is a small suite of [Buster.js](http://busterjs.org/) unit specs in BDD style in the `spec` directory.\n\nTo run specs, start the buster server with:\n\n      \u003e buster server\n\nThen, navigate any number of slave browsers to the buster server at `http://localhost:1111`\n\nRun specs with:\n\n      \u003e buster test --reporter specification\n\nor simply:\n\n      \u003e buster test\n\nfor less verbose output.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroots%2Fsnippetron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroots%2Fsnippetron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroots%2Fsnippetron/lists"}