{"_id":"choma","_rev":"9-2e89538bfd91d1798eed63d6176b328d","name":"choma","description":"Random ordering for mocha","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"choma","version":"1.0.0","description":"Random ordering for mocha","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"keywords":["mocha","tdd","testing","stateless"],"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/lennym/choma/issues"},"homepage":"https://github.com/lennym/choma#readme","dependencies":{"lodash.shuffle":"^4.0.0"},"peerDependencies":{"mocha":">=2"},"gitHead":"e805a864cfc7077c288193418177ea4c43d618d4","_id":"choma@1.0.0","_shasum":"f4e74853907d002ec19f7a42c4adb04beb23e6e1","_from":".","_npmVersion":"3.10.2","_nodeVersion":"4.2.1","_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"dist":{"shasum":"f4e74853907d002ec19f7a42c4adb04beb23e6e1","tarball":"https://registry.npmjs.org/choma/-/choma-1.0.0.tgz","integrity":"sha512-8jwtTxOMZHiaYPDRfDHBcstZ8Ywazn8nAN1AlTDoQXsk+v1k0Cl9L6B+zJRvHyGrdKSKM1OYjHuMo4oYm+zNpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXO4H/Xp8YT549EdKajuE0o3fCcr5g7VBkkKDvHfn5hAiEA1sDQMppljELt+6zzPLn8xZ6ORm1Ltxl9yp1tzxZJOuU="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/choma-1.0.0.tgz_1468332351855_0.20932245533913374"},"directories":{}},"1.0.1":{"name":"choma","version":"1.0.1","description":"Random ordering for mocha","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"keywords":["mocha","tdd","testing","stateless"],"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/lennym/choma/issues"},"homepage":"https://github.com/lennym/choma#readme","dependencies":{"lodash.shuffle":"^4.0.0"},"peerDependencies":{"mocha":">=2"},"gitHead":"32945b180e2e8601262d0100003b6578edf515ca","_id":"choma@1.0.1","_shasum":"7bb2b4b8317857c054f34518deb581fe64decae2","_from":".","_npmVersion":"3.10.2","_nodeVersion":"4.2.1","_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"dist":{"shasum":"7bb2b4b8317857c054f34518deb581fe64decae2","tarball":"https://registry.npmjs.org/choma/-/choma-1.0.1.tgz","integrity":"sha512-RjzBGtwBQKdvE6p3FKyJVFTkpwZNeME5h7FKxvD2Lj5znJy2N2BzkN5jB5eUrxHQgPx9YYuqnu1hyNr04W7KrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASioQ1BG2DNJzUqsDZgjao8k2AsgmxLhiAjb+XUiGAYAiB6cGNCchTYWsS8RKgQ1l4hSKmevf3F51zbz8g8CWHo6Q=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/choma-1.0.1.tgz_1468332941335_0.38461628602817655"},"directories":{}},"1.1.0":{"name":"choma","version":"1.1.0","description":"Random ordering for mocha","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"keywords":["mocha","tdd","testing","stateless"],"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/lennym/choma/issues"},"homepage":"https://github.com/lennym/choma#readme","dependencies":{"lodash.shuffle":"^4.0.0"},"peerDependencies":{"mocha":">=2"},"gitHead":"577842023e58e06dcbff196432bb4ef3c3f487fd","_id":"choma@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"dist":{"integrity":"sha512-WohfFZK/xleSNOE+SHyJ+xC+ehgpg/IhABWMh6+KI+z82wUkSFRZe1lMYd4XvR50PDrnIWpDm7voe/PuuD6QTQ==","shasum":"0e6e5de3c935214234d93796c32b65601130f602","tarball":"https://registry.npmjs.org/choma/-/choma-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQQU9hZvAfJeVF9kN2+F+PvT34n/p3aFO20CGniSgxbAiAsKOryQoFviu55mNA4jPkgSBEFZhU/QIg9nf1iMUavCg=="}]},"maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/choma-1.1.0.tgz_1515429059032_0.11464458075352013"},"directories":{}},"1.2.0":{"name":"choma","version":"1.2.0","description":"Random ordering for mocha","main":"index.js","scripts":{"test":"eslint . --config lennym"},"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"keywords":["mocha","tdd","testing","stateless"],"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/lennym/choma/issues"},"homepage":"https://github.com/lennym/choma#readme","dependencies":{"chalk":"^2.3.2","seedrandom":"^2.4.3"},"devDependencies":{"eslint":"^4.18.2","eslint-config-lennym":"^1.4.0","mocha":">=2"},"peerDependencies":{"mocha":">=2"},"gitHead":"720af341bd8c0c1881d6d814c8da6153df21714d","_id":"choma@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.8.1","_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"dist":{"integrity":"sha512-nl9VE8maFvY95SPHEdJ/avEsBJ4gcgZ4M7r1tA7HtBAhUsVn74OnVYsB65l6xGXYOakMkJCp/lmv+4vfknIZ4Q==","shasum":"d64191c4b57eeb157c56cd60a5d0b3ffba4b88e5","tarball":"https://registry.npmjs.org/choma/-/choma-1.2.0.tgz","fileCount":9,"unpackedSize":5124,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlu+YiQRrcp/xbUF9najWfGY2dZYwLG8ql60GFJKR/nQIgDigP6AN5jNkWEvdSnOt3Iz7K2oUy7hWMi5V6IeR/5+k="}]},"maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/choma_1.2.0_1520506906678_0.23031899610713014"},"_hasShrinkwrap":false},"1.2.1":{"name":"choma","version":"1.2.1","description":"Random ordering for mocha","main":"index.js","scripts":{"test":"eslint . --config lennym"},"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"keywords":["mocha","tdd","testing","stateless"],"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/lennym/choma/issues"},"homepage":"https://github.com/lennym/choma#readme","dependencies":{"chalk":"^2.3.2","seedrandom":"^2.4.3"},"devDependencies":{"eslint":"^4.18.2","eslint-config-lennym":"^1.4.0","mocha":">=2"},"peerDependencies":{"mocha":">=2"},"gitHead":"3894eb589aa2ea5576cb5ef7a9367ece81ef2671","_id":"choma@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.8.1","_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"dist":{"integrity":"sha512-4KwEouEHt6SfG8vYnN2gSJfq/cGmnY2gubnUgsgkRXzHoSRAgluX2YXQgDg6bTDWuOmUrTb/cfwMpNlvnnPZCg==","shasum":"3467e5e1095ece975c48b74ded33ab771e2faaf4","tarball":"https://registry.npmjs.org/choma/-/choma-1.2.1.tgz","fileCount":9,"unpackedSize":5141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwP0EMb8NoojpWW961W8plEsDxqCtDTg+0/2nsMI+v/AiEAp0mSgqpZiZ19imE3ICi1kC0+h47cdqQBYETW/cHhr0A="}]},"maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/choma_1.2.1_1521454923634_0.7991852539487874"},"_hasShrinkwrap":false}},"readme":"# choma\nRandom ordering for mocha\n\n## Why?\n\nIt is very easy to accidentally create a fragile test suite by leaving lingering state after a test case, that is then inadvertently used as a precondition for a subsequent test. This can then cause problems trying to run single tests or test suites in isolation.\n\nBy executing files in a random order on each execution of a test suite the risk of accidental introduction of state is eliminated, or at least reduced, since any dependency on leftover state will result in test failures.\n\n## Usage\n\nPass `choma` as a `require` option to mocha, either by appending to your test command:\n\n```shell\n> mocha ./tests/ --require choma\n```\n\nor by adding a line to `mocha.opts`\n\n```\n--require choma\n```\n\n## Seeds\n\nThe seed used to generate the random order is output to the console when running your test suite.\n\nIf you would like to re-use a seed to re-test a particular execution order, you can set an environment variable of `CHOMA_SEED`.\n\n```shell\n> CHOMA_SEED=myseed mocha ./tests/ --require choma\n```\n","maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"time":{"modified":"2022-06-13T05:59:19.587Z","created":"2016-07-12T14:05:54.327Z","1.0.0":"2016-07-12T14:05:54.327Z","1.0.1":"2016-07-12T14:15:43.161Z","1.1.0":"2018-01-08T16:30:59.963Z","1.2.0":"2018-03-08T11:01:46.733Z","1.2.1":"2018-03-19T10:22:03.762Z"},"homepage":"https://github.com/lennym/choma#readme","keywords":["mocha","tdd","testing","stateless"],"repository":{"type":"git","url":"git+https://github.com/lennym/choma.git"},"author":{"name":"Leonard Martin","email":"hello@lennym.co.uk"},"bugs":{"url":"https://github.com/lennym/choma/issues"},"license":"MIT","readmeFilename":"README.md","users":{"mrporteradmin":true}}