{"_id":"@caplin/karma-jstd-adapter","_rev":"9-110e836aa4b6a56ad834de91949ea32d","name":"@caplin/karma-jstd-adapter","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@caplin/karma-jstd-adapter","version":"1.0.0","description":"An adapter for karma, so you can run your js-test-driver tests.","main":"jstd-adapter.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/tylerc/karma-jstd-adapter.git"},"keywords":["jstestdriver","js-test-driver","karma","adapter"],"author":{"name":"Tyler Church"},"license":"MIT","bugs":{"url":"https://github.com/tylerc/karma-jstd-adapter/issues"},"homepage":"https://github.com/tylerc/karma-jstd-adapter#readme","_id":"@caplin/karma-jstd-adapter@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"caplin","email":"infrastructure@caplin.com"},"dist":{"integrity":"sha512-vQu16lSdVKDFLElZnC23rXwd6lWeni/tqB+u77TWmz4oLnDoaZ3/Dmn500AoNz95mMx+VY4kzzg2Fl2ptOoGvg==","shasum":"0248da283603691c7fba4b0bd9495ef30934446c","tarball":"https://registry.npmjs.org/@caplin/karma-jstd-adapter/-/karma-jstd-adapter-1.0.0.tgz","fileCount":6,"unpackedSize":319796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPvwWpGKa3FJASEpcWgufvk5hmheF++Rv8vl8tHc98aQIgMfMKc++UbX/N3/W4k4mHmN8yY1XjVwdZb2Ru+Rz5X/U="}]},"maintainers":[{"name":"caplin","email":"infrastructure@caplin.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-jstd-adapter_1.0.0_1521113372999_0.19209843425210282"},"_hasShrinkwrap":false},"1.1.0":{"name":"@caplin/karma-jstd-adapter","version":"1.1.0","description":"An adapter for karma, so you can run your js-test-driver tests.","main":"jstd-adapter.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"http://github.com/tylerc/karma-jstd-adapter"},"keywords":["jstestdriver","js-test-driver","karma","adapter"],"author":{"name":"Tyler Church"},"license":"MIT","_id":"@caplin/karma-jstd-adapter@1.1.0","dist":{"shasum":"d2e9e951ced060d6d946eac87d86da06c8e18b2c","integrity":"sha512-/OBSk4yJNqiH0aY+Dtq2YWR0chAkH72+5d8tPelUajkvo5BpI3dMSop6SlRNrFvzgZ0p7aVnkHWB4gpnLp7VsQ==","tarball":"https://registry.npmjs.org/@caplin/karma-jstd-adapter/-/karma-jstd-adapter-1.1.0.tgz","fileCount":7,"unpackedSize":321385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFhBwCRA9TVsSAnZWagAAQMAP/jZWcBDAjFs/sgSv9o55\njf7vtgur0cHBmnFTOyeWk7oSqjdW1zmgQUQcYado6++QuzAdpvp8rVtBQzVT\ni0dULaaYDWOl/yUTRIgzaek6qlHL3q0M+i3bBq4lBt0ILH/2Dg1hXvR2/4FL\n/Xe4kaP/lypwmfDH10gKzo4Dp6iEwGKR9Z0KORBsUtTljz4pwSFotkIu4Qsu\ni+KXklJ1EcsCeJl5Zfx71XmwqvMwrh3YobazvkUlRZv0lsJwrMe3NHTL98i/\nSMlm8uNN0/ZWH82oNtRuKpatnrWf5IvXb3IobpZRHJTfZCDQM3oH3EzrYmTT\nRxb5ZZ++sH767HouDJ2Y3kVTvpRt2cswjGFDR/dCAV5vq8jOa2dHzQEkj+Kn\npH7cG4ItOzEnOBdU1q5+wMaSEjWUY6MOi9XEU7uIBOMLzq1BjdKBFE1QVI8/\nXyGOk5uyE0hAsE8xWXK4bGTDZDxITXqhXoWJRiYJPJ8AeYTUrP97cxsMthvM\nf+TivbQxrulzSeb2rLlJVo4ggErISSqZ/FYWf9ePQxymbTDeNz53aarYyqEf\nusCVs9YBtP0utOdpYeZNa5FpYZ/C3uislcNgsQPFVwmAD5wz0jkr2YcA2FMM\nQtlZ4OS4o6Ni7hWT843LjNFh9W8W7AHUkU5JLXbrpf5XFKfA1PvWEWysxksh\nHnA5\r\n=m73X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrZ785Wl4Ii/uKVwaedWcQK8Y3ikyChm3EVUYv9f7I1AiEA3qHsDXN38DWYYoeePPi9jwsUvpmX/kdYy0A6wBHqxzc="}]},"maintainers":[{"name":"caplin","email":"infrastructure@caplin.com"}],"_npmUser":{"name":"caplin","email":"infrastructure@caplin.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-jstd-adapter_1.1.0_1578504303466_0.9347412186374289"},"_hasShrinkwrap":false},"1.1.1":{"name":"@caplin/karma-jstd-adapter","version":"1.1.1","description":"An adapter for karma, so you can run your js-test-driver tests.","main":"jstd-adapter.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"http://github.com/tylerc/karma-jstd-adapter"},"keywords":["jstestdriver","js-test-driver","karma","adapter"],"author":{"name":"Tyler Church"},"license":"MIT","_id":"@caplin/karma-jstd-adapter@1.1.1","dist":{"shasum":"79be4c6eeae4139df8c128d74ab9f11bf76ada02","integrity":"sha512-2pQGgUyZY4d6PGpr3nFSSQqIe5ObZ3nJX6FVCrkc0GgF576YyhDC156RSOUtw5KDbUqX5I+H6sHVrsi/6/JWNg==","tarball":"https://registry.npmjs.org/@caplin/karma-jstd-adapter/-/karma-jstd-adapter-1.1.1.tgz","fileCount":7,"unpackedSize":323188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei0NjCRA9TVsSAnZWagAA9IQP/38NhS8EHXcHON4SPBFZ\nNl3jKTVtUI2ZF01AYCTc9owyoNWNVwE22yBw8jlu6gS3X9S3RH8ripSQNSHy\nka9avuD0p7i1PT6oBsfo98+CVSHYmOh+7GxQrN28q48SS+E27b8vv4wN/8yx\nd0O+cgsGmeS0Zh0huUPzT8jH4+wfrcmiKl18UJmBZB+wZrnNZSrgD5B7zR8s\ng+Rk4ZAX2lt/Q/43jbOTw/LVXqPIz5Md8blRSzQyZaIfZWtQA9SyD6LaKYql\nXcHZYuRFYUxAMqeimAwvnbSQM9g+OKszVAA+XtdKSuYkvY/itRJPvrbmGKf/\nooGkIU5WGQ605Fcalk2QrTdWt3nbHTcjwH/demgUajoLtnAhUdy4FablCsr8\nEVn9AE5Cy4psteN/S4iMrUdo8InwDYi+nDWh2MmgN2JpZqTNqNnW9BSRF6r3\nmnWMnEwuvMVW8MflQVPuiVbYCdAv8o0xk0Kes1EAwYjaZhF8ePjH/mdS6ypc\neiKgFfFpR1CDgS5L1kn305fG//XmcRnyHOPrRpttaJ974pn+VBYhYb9Zf338\nVRw/dkmOSXZSijFiZ94ngeH4SoojM8Aw53LchRTScwO7X2hFZ2ITtDyZmEiu\njcg/SaXycE3xjRRwD+wGtymXsxpAnoeECUn31O3mQgw2Y4AM2o54Ynrk2gjY\nObTO\r\n=kH3S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADivScqVGayRuhrGZ64VLFOsasXOkZpRlNgfC7cnRRHAiBp9g4+W2isW7OGkLHSK8OXqmhY7TlPCNx1L3HIZSn4wg=="}]},"maintainers":[{"name":"caplin","email":"infrastructure@caplin.com"}],"_npmUser":{"name":"caplin","email":"infrastructure@caplin.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-jstd-adapter_1.1.1_1586185059464_0.7241923198064297"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-15T11:29:32.936Z","1.0.0":"2018-03-15T11:29:33.224Z","modified":"2022-04-04T21:46:05.377Z","1.1.0":"2020-01-08T17:25:03.617Z","1.1.1":"2020-04-06T14:57:39.585Z"},"maintainers":[{"email":"benedikt.passini@caplin.com","name":"benediktp"},{"email":"marc.labuhn@caplin.com","name":"mlabuhn"},{"email":"adam.iley@caplin.com","name":"adam-at-caplin"},{"email":"alvaro.sesma@caplin.com","name":"alvaro.caplin"},{"email":"offler@gmail.com","name":"briandipalma"}],"description":"An adapter for karma, so you can run your js-test-driver tests.","keywords":["jstestdriver","js-test-driver","karma","adapter"],"repository":{"type":"git","url":"http://github.com/tylerc/karma-jstd-adapter"},"author":{"name":"Tyler Church"},"license":"MIT","readme":"karma-jstd-adapter\n==================\n\nThis is an adapter for the [Karma Test Runner](http://karma-runner.github.io/) for [Js-Test-Driver](https://code.google.com/p/js-test-driver/).\n\nBasically that means that if you use this, you should be able to use Karma instead of Js-Test-Driver,\nwith out making any changes to your tests. It's possible I broke some things though.\n\n[Another adapter exists](https://github.com/vojtajina/karma-jstd), but it takes a much different\napproach than this adapter does, by adding a layer on top of [Jasmine](http://pivotal.github.io/jasmine/)\nto simulate the features of Js-Test-Driver. Because of this, it is not yet feature-complete (for example,\nwhile I was still using it, I had to write my own queue for AsyncTestCase.)\n\nThis adapter instead does a wholesale import of the JavaScript portions of Js-Test-Driver, and uses\nthat to provide the hooks into Karma. This provides the advantage of having most/all of Js-Test-Driver's\nfunctionality, without the cost of having to write a layer on top of Jasmine or anything else. On the other hand,\nJs-Test-Driver is a complex beast, and I'm certain there's a lot of code we're pulling over from Js-Test-Driver\nthat is never going to be run, but I don't have the time to figure out what parts we need, and what parts\nwe don't.\n\nWhat Works\n----------\n\nAs far as I can tell, everything works. The only thing that probably doesn't work is Js-Test-Driver's\n[HtmlDoc feature](https://code.google.com/p/js-test-driver/wiki/HtmlDoc), I believe that was implemented in\nJava, and thus wasn't pulled over into this adapter. I don't use that feature, so I can't confirm\nwhether it works or not. Hopefully it wouldn't be too implement that functionality if anyone needs it.\n\nInstalling\n----------\n\nBasically all you need is `jstd-adapter.js`, so you can either download it from GitHub, or\nyou can use `npm install karma-jstd-adapter`. In either case, add `jstd-adapter.js` to the list\nof files Karma will load, and you'll be set to go.\n\nBuilding\n--------\n\n\"Building?\" you ask, \"What do you mean building?\"\n\nIf you were looking at the files in this project, you may have noticed `inserter.js` and `jstd-adapter-template.js`.\n`jstd-adapter-template.js` contains the code that interfaces with Karma, but needs the Js-Test-Driver\ncode to operate. `inserter.js` reads in the Js-Test-Driver code, does a few manipulations, and then\ninserts it into the text of `jstd-adapter-template.js` and produces `jstd-adapter.js`.\n\nIf you wanted to produce the `jstd-adapter.js` file yourself for whatever reason (say a new version\nof Js-Test-Driver comes out.), you'll need to do two things:\n\n1. [Download the Js-Test-Driver jar file](https://code.google.com/p/js-test-driver/downloads/list).\n2. Unzip it somewhere.\n3. Run `node inserter.js C:\\path\\to\\Js-Test-Driver\\com\\google\\jstestdriver\\javascript\\`\n\nAnd you'll be good to go!\n\nFound a bug? Want to Contribute?\n--------------------------------\n\nFeel free to fork the project, create a pull request, or file an issue in the bug tracker on GitHub.\n\nLicense\n-------\n\nObviously this project is based on Js-Test-Driver, which is distributed under the [Apache 2 License](http://www.apache.org/licenses/LICENSE-2.0).\n\nPortions of Js-Test-Driver are also distributed under the MIT license.\n\nThis project was also based partially on the [Tyrtle Adapter for Karma](https://github.com/karma-runner/karma-tyrtle), which doesn't\nappear to have a license, but I figured I should mention it.\n\nThis project itself is licensed under the MIT license:\n\nCopyright (c) 2013-2014 Tyler Church\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","readmeFilename":"README.md"}