{"id":16292490,"url":"https://github.com/exogen/jstestdriver-helpers","last_synced_at":"2025-07-19T10:33:58.068Z","repository":{"id":1309828,"uuid":"1253182","full_name":"exogen/JsTestDriver-helpers","owner":"exogen","description":"Helpers for a more streamlined JsTestDriver setup.","archived":false,"fork":false,"pushed_at":"2011-01-14T11:42:29.000Z","size":2868,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T05:43:19.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/exogen.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":"2011-01-14T02:45:47.000Z","updated_at":"2017-05-10T22:38:54.000Z","dependencies_parsed_at":"2022-08-16T13:05:05.793Z","dependency_job_id":null,"html_url":"https://github.com/exogen/JsTestDriver-helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exogen/JsTestDriver-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2FJsTestDriver-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2FJsTestDriver-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2FJsTestDriver-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2FJsTestDriver-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exogen","download_url":"https://codeload.github.com/exogen/JsTestDriver-helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2FJsTestDriver-helpers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265916930,"owners_count":23848821,"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":"2024-10-10T20:07:07.711Z","updated_at":"2025-07-19T10:33:58.028Z","avatar_url":"https://github.com/exogen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A streamlined setup for [JsTestDriver][]\n========================================\nThis repository contains helpers for use with [JsTestDriver][]. JsTestDriver is also currently bundled in the repository, for better or worse.\n\nWhy does JsTestDriver need any helpers? So instead of typing this:\n\n    $ java -jar JsTestDriver-1.2.2.jar --port 9876 --tests all\n           --browser /Applications/Firefox.app/Contents/MacOS/firefox-bin\n\nYou can type this:\n\n    $ testdriver --port 9876 --tests all --browser firefox_mac\n\nTry it out\n==========\nClone the repository and run:\n\n    $ ./bin/testdriver --port 9876 --tests all --browser safari_mac,firefox_mac,chrome_mac\n\nThis will run the two example test cases in Safari, Firefox, and Chrome, assuming you're on a Mac with them. Adding browser launchers is as simple as putting a script or symlink in `bin/browsers/`. For example, we can add a `firefox_safe` launcher:\n\n    #!/bin/bash\n    /usr/bin/firefox -safe-mode $@\n\nWe can then use `--browser firefox_safe` for testing.\n\nUse it in your project\n======================\nJust put `bin/` in your project root. (You can rename it, just keep in mind that by default it expects your project root to be the parent directory.)\n\nYour JsTestDriver configuration file should also be in the project root.\n\nLayout\n======\n\n* `.`: (top level) Project root. Contains JsTestDriver configuration file.\n* `src/`: Project source code – the code we want to test.\n* `bin/`: Test runner files.\n* `bin/browsers/`: Browser launchers (symbolic links or wrapper scripts).\n* `tests/`: Project test cases.\n\nFiles\n=====\nProject specific:\n\n* `jsTestDriver.conf`: Standard [JsTestDriver configuration file][ConfigFile] for our example project.\n* `src/example.js`: Some example code to test.\n* `tests/test_example.js`: Our example test cases.\n\nGeneric helpers:\n\n* `bin/JsTestDriver.jar`: A symbolic link to the version of JsTestDriver we're using.\n* `bin/testdriver`: A wrapper script that sets `--basePath` to the project root and adds `bin/browsers/` to `$PATH`.\n* `bin/browsers/firefox_mac`: A wrapper script to launch Firefox on a Mac.\n* `bin/browsers/safari_mac`: A wrapper script to launch Safari on a Mac.\n* `bin/browsers/chrome_mac`: A wrapper script to launch Google Chrome on a Mac.\n\nAdding more browser executable scripts to the `bin/browsers/` directory will make them accessible with the `--browsers` argument.\n\nThe `bin/testdriver` script assumes that your configuration file (and the location assumed by the filenames in the configuration file) is in its parent directory. If you use a different layout than described here, set `$PROJECTPATH`:\n\n    $ PROJECTPATH=/var/code/project /path/to/testdriver --port 9876 ...\n\n[JsTestDriver]: http://code.google.com/p/js-test-driver/\n[ConfigFile]: http://code.google.com/p/js-test-driver/wiki/ConfigurationFile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fjstestdriver-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexogen%2Fjstestdriver-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fjstestdriver-helpers/lists"}