{"_id":"trial","_rev":"21-747cb14106494f3c02de9b50fee10f7b","name":"trial","description":"A testing framework","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"trial","description":"A testing framework","version":"0.0.1","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git://github.com/postwait/node-trial.git"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","dependencies":{},"devDependencies":{},"_id":"trial@0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.5-pre","_defaultsLoaded":true,"dist":{"shasum":"5ecafc5fd0b67840a717af58ef3b167fa532fcd6","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.1.tgz","integrity":"sha512-jVqAJkrHJRW8sF/y7pXN1ZgxWw6Cn+y+/XH9mxbfgINKevBX6IKLyWTqa7IsruxjczViDkfsM+4oFtbVXNZ9Tw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUMGYTwXvlI0uDXQ0GwZNVu/ME7QvumUNUv6tmVQHzXAiEAsvvF166H33YEyDK1e4wY3S1YWo7HbQoQSh0KQiRo4qc="}]},"scripts":{},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.2":{"name":"trial","description":"A testing framework","version":"0.0.2","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"http://github.com/postwait/node-trial.git"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","_id":"trial@0.0.2","dist":{"shasum":"9634ad7b921d9330d93e08a0b15f6daf268a3d20","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.2.tgz","integrity":"sha512-HtoFmKpm88T2MTfBF836CYA0F5Tb1lMbh6P1D8i9hD0dZWd3KJp3xBSAvSHg7VjbkfEAOOlZLsyzUS8Ka48l1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfB6X7dCt+mYMYqQfDxkn+CSAQgcWr+I7xgEml4V0DjgIgLV0Aoh1QfT/o2GfmEbDOKEpTgE3x26hCX+Z0Qm/somg="}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.3":{"name":"trial","description":"A testing framework","version":"0.0.3","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"http://github.com/postwait/node-trial.git"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","_id":"trial@0.0.3","dist":{"shasum":"dbe03a551a43d04c5cf6525efcd9f5ae794666af","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.3.tgz","integrity":"sha512-+YJcqRDW5jgrc8trddKuC5luYvgZGU+zRZadIWPSBco+/bwF4G0DLAk5bxrUL+iXpHoSREos4uDnE24Kj9pN8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHnozzCNbm1RVPl8UEccukOVjPRHukF79LQhbXri5Lb8AiEAgRH7rU/SjB0pTXp0um41VFdsxXlP7V82oWsymAGDKSk="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.4":{"name":"trial","description":"A testing framework","version":"0.0.4","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"http://github.com/postwait/node-trial.git"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","_id":"trial@0.0.4","dist":{"shasum":"29abd485658e96d13f22229ed5a3046e50b71eba","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.4.tgz","integrity":"sha512-1EhBYsVV1wtSUYStJxl2cc5m74XilN41i9ZLhxHZcOCo70l3W238zyDwhOwaShz9R+i8Z8qLLpt+GQ5NxOoogg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDASo0FxlAlswlEB3SfNqhqhAAkNY2APqznFvyh4fRJmQIgXAu22XMaVClCX2uDBLwn9DAVndqdANR6pEt9pd/rjQQ="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.5":{"name":"trial","description":"A testing framework","version":"0.0.5","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"http://github.com/postwait/node-trial.git"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial","_id":"trial@0.0.5","dist":{"shasum":"29e806d353e3fbf30cbf0d1c812971d6c1a964bc","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.5.tgz","integrity":"sha512-8XrN1rs8FAD11x1J1mcM9wGtyDXloG0b2qBFMqPlPVrsbW5PNgMeUQsYL2ypl61TburGn9VfkHWBZmM/fZFo8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgK8h5xqUZDkzFM/UjJ0dY49eze+c0iXk8MMi9CVPxNwIhALFw2AgX/OIVbwucCEhHpl80vEwXIvSMrq7z7MkHlhBB"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.7":{"name":"trial","description":"A testing framework","version":"0.0.7","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"http://github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial","_id":"trial@0.0.7","dist":{"shasum":"5b6663d182d4a2c0b3919035772def1e511c601f","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.7.tgz","integrity":"sha512-UXCNbuLwvXTwvhPMFW6Nfe96kL60muQLUsb4PeEsndsrBQBSxMIrLJwtA9p8rBeqlgL29GNcVa9O8cN6HSDEow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtxrgHQhb0HgOUoIaqCizkHzHx/7yUUrSx2iK4UKEuvAiEAm0vYJo8Gdo6z7CuGvKVOAfjaMxNKaru8IMrhyC3XkT0="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.8":{"name":"trial","description":"A testing framework","version":"0.0.8","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","gitHead":"7abd369a975acc814462e243537cb7172f288597","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@0.0.8","_shasum":"b38dd60d9add818ef7b3c7c214a98c076a85e69e","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"dist":{"shasum":"b38dd60d9add818ef7b3c7c214a98c076a85e69e","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.8.tgz","integrity":"sha512-c94OHxphtNKsHBRQ+iSxEiMcyCLHC42ieAGt1VW2o1jGHkBmdvt9T7+SimyyzpIHg95/GedwLn9bmfGS1GMHRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEh4xGMKAdPA1hjcbyYlBlKMyog2z2Q6itq1My4upkc8AiEA7wSj6voJHzq4Zgw/bvImFvNZSGMQQeWew2A8m2C8aOQ="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/trial-0.0.8.tgz_1463584168409_0.9089408267755061"}},"0.0.9":{"name":"trial","description":"A testing framework","version":"0.0.9","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","gitHead":"3cf6772950b140b174515f21a5d8cbe8ac31b09c","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@0.0.9","_shasum":"84ddc4ec33b4008edd9b1a3a798c209abbb2e5a1","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"dist":{"shasum":"84ddc4ec33b4008edd9b1a3a798c209abbb2e5a1","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.9.tgz","integrity":"sha512-g7owCpWvG2LlfNFtF2BJJ/MChc+QePLvOmKLYnRLM/BkkVQqSio40So5xyhE1Ca70jTPAP5nouZQmipeDOK3cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/F2Riwt2w9LzY3KxeeGEJQErqTU/BpRQyPuWL1k0fFwIhAL1mjKlRJPGPcSN5dVVzwqRbFjGeNHwOFoy/cYoJDn9W"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/trial-0.0.9.tgz_1463585783644_0.2592229077126831"}},"0.0.10":{"name":"trial","description":"A testing framework","version":"0.0.10","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","dependencies":{"xml":"^1.0.1"},"gitHead":"40f513aa1edcf375ef78589f6f0fa593bbbcefb2","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@0.0.10","_shasum":"8b09d025faadddcfe1cf0d699e9ccc82586be56a","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"dist":{"shasum":"8b09d025faadddcfe1cf0d699e9ccc82586be56a","tarball":"https://registry.npmjs.org/trial/-/trial-0.0.10.tgz","integrity":"sha512-AEX70VfsNWwsprVBModglStrqRtUNjYXb8y4My8eA1V/cOMA9W1Y8f7QnVImiqzEQ6Mxg0ZAiammT6Jir3raSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj3BTIDLAvKtnWB+F0hudYXwGPgUVWc9ItzB15TmkbdAiAsKfO5CGTpFis/llMpLyBux8IxLZYhhxKcUQhXuJUhfQ=="}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/trial-0.0.10.tgz_1478724623016_0.18343150173313916"}},"1.0.0":{"name":"trial","description":"A testing framework","version":"1.0.0","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","dependencies":{"xml":"^1.0.1"},"gitHead":"b09b4401dc82c886d15a81eaf192ccb162d7dfb0","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@1.0.0","_shasum":"5fded3be8c069a04bba52b02191918fd0807760b","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"dist":{"shasum":"5fded3be8c069a04bba52b02191918fd0807760b","tarball":"https://registry.npmjs.org/trial/-/trial-1.0.0.tgz","integrity":"sha512-6FDRxEu2DB7O5UARZzFytmv1aBgX+Y4+WApE3YyoRf/l5tBzZd0VyKrSx77ODnp2ectBoC1T+W7lA99CqizbSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6TF+SuCx8hHr9uzH80Oa13KXreRmU+UfWGuVz65IBmAIhALKdXqUGO/ZrtHSGbPko6hFxsGq4jUI9SRHks3uujOq1"}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/trial-1.0.0.tgz_1478786105471_0.4061886938288808"}},"1.0.1":{"name":"trial","description":"A testing framework","version":"1.0.1","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","dependencies":{"xml":"^1.0.1"},"gitHead":"5f125d573221821ee120ee4622cca95a370fcf9d","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@1.0.1","_shasum":"dd2479d0f0c65831338c5e382386fd9ad79e9cea","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"dist":{"shasum":"dd2479d0f0c65831338c5e382386fd9ad79e9cea","tarball":"https://registry.npmjs.org/trial/-/trial-1.0.1.tgz","integrity":"sha512-VdoPm8JmKF1ZMSdVybllqywB2CkdGjVtZwgCFrzyDBJp8Wkpw/9TP6QMm+2HLRmfbGDT2NGza7w0S/k6ng0XWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP+noZWlLf1BORk8DvEbE2DH7G1uTus+d1hzPrugWaEwIge4c4CPP2qpreTsy1CaUuB00CW0GUYQi+zbrh4PC2718="}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/trial-1.0.1.tgz_1479927869348_0.8876840909942985"}},"1.1.0":{"name":"trial","description":"A testing framework","version":"1.1.0","author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"scripts":{"test":"./test/checktest.sh"},"directories":{"lib":"./lib/trial"},"main":"lib/trial/index.js","dependencies":{"xml":"^1.0.1","block-queue":"^0.0.2"},"gitHead":"8f62b0910605f07243a6dd294b7ef9251d5451f9","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"homepage":"https://github.com/postwait/node-trial#readme","_id":"trial@1.1.0","_shasum":"c2917e2ce65b58c6ab353b495c794600dbe0c612","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.6","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"dist":{"shasum":"c2917e2ce65b58c6ab353b495c794600dbe0c612","tarball":"https://registry.npmjs.org/trial/-/trial-1.1.0.tgz","integrity":"sha512-HcUHAjWhjS/M2K1eJg2YpWX9SE3e4nzVMZc0gtGM/niMMN3N+d1yVrlRd+JS1DpISAhJUpOPxNXdsxGGeFsoiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGwrq+p4Cm794rCL8QE8FDu8LK998BjFDTH3BP2m2kjgIgF04NCSqt2+cDjQrA1pYf0XVLUHwFOjE2FtxKCXCIOcE="}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/trial-1.1.0.tgz_1492701583592_0.43554076133295894"}}},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"time":{"modified":"2022-06-27T21:12:26.910Z","created":"2011-08-01T18:13:31.452Z","0.0.1":"2011-08-01T18:13:31.912Z","0.0.2":"2012-10-26T14:24:59.355Z","0.0.3":"2014-01-01T14:47:15.800Z","0.0.4":"2014-01-09T20:04:05.905Z","0.0.5":"2015-01-21T22:29:25.789Z","0.0.7":"2015-03-02T01:37:18.866Z","0.0.8":"2016-05-18T15:09:31.417Z","0.0.9":"2016-05-18T15:36:25.883Z","0.0.10":"2016-11-09T20:50:25.210Z","1.0.0":"2016-11-10T13:55:06.018Z","1.0.1":"2016-11-23T19:04:29.909Z","1.1.0":"2017-04-20T15:19:45.871Z"},"author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git+ssh://git@github.com/postwait/node-trial.git"},"readme":"## Trial ##\n\nTrail is a node module that provides concurrent testing with strong\ndependency support.  Each test consists of bits that look quite a lot\nlike the perl Test::More bits.  Becuase they are asynchronous, it works\na tad differently.\n\n### Overview ###\n\nEach test consists of:\n\n  * test // a function that runs the tests.\n  * name // arbitrary user test name\n  * plan // number of tests you intend to run\n  * requires // array of named requirements\n  * provides // array of named satisfications\n\nLike typical tap tests, a test would look something like this:\n\n    function() {\n      this.ok(true, \"this better pass\");\n      this.is(1+2, 3, \"adding sorta works in javascript\");\n      this.ok(false, \"this test will certainly fail\");\n    }\n\nA test that includes this test must have a plan equal to 3. Due to\nthe asynchronous nature of many tests, the framework will wait until\nthree tests checks report back before considering the test complete.\nIf you trigger too few, it will hang waiting (as expected).  If you\ntrigger too many, the world will end (and it's your fault).\n\nAs tests run, they can stash things in a trial-accessible key value\nstore by calling this.stash(\"mykey\", myvalue).  Tests can retrieve\nthis data by calling this.fetch(\"mykey\").\n\nA test can depend on another test by leveraging the requires and\nprovides arrays.  If the \"createuser\" test has a\nprovides: ['test_user_id'] and other tests in the system have\na requires: ['test_user_id'], then the dependent tests will wait\nuntil the \"createuser\" test completes before beginning. This\ncombined with the stash/fetch provides a simple way to synchronize\ncomplex and dependent tests while still maximizing concurrency.\n\nEach test is run in a new `vm` sandbox.\n\n### API ###\n\n#### var trial = new Trial([params]) ####\n\ncreates a new trial object that respects the following param keys:\n\n * `verbose` [`false`] : be verbose\n * `brief`   [`false`] : be brief\n * `summary` [`true`] : summarize the trial\n * `incremental_reporting` [`false`] : don't wait until each test finishes\n * `tap` [`false`] : use TAP output (above are ignored)\n * `suppress` [`{}`] : keys of test names to suppress (not run)\n * `require` : an optional replacement for `require()` maintain sandboxing\n\nNode, if `verbose`, `brief`, `summary`, or `incremental_reporting` are not\nspecified, then they are taken from the environment variables `TEST_VERBOSE`,\n`TEST_BRIEF`, `TEST_SUMMARY`, or `INCREMENTAL_REPORTING`, respectively.\n\n#### trial.run() ####\n\nwill start the trial executing all tests as the\ndependency graph dictates. Upon completion a report will be issued.\nVerbose details will be shown if TEST_VERBOSE environment variable is\nset (or the verbose attribute is passed to the Trial creation).\n\n#### trial.noexit() ####\n\ninforms the trial that upon completion it should not\nexit (node) with a status code that indicates the overall trial\nsucess (0 for good, 1 for bad).\n\nIf critical errors are encountered during test build or run, node will\nexit with a value of 2.\n\n#### trial.add(new Test(params)) ####\n\nAdds a new test to a trial.\n\n#### trial.load(dir) ####\n\nWill recursively load all .tjs files and create\ntests will full dependencies. .tjs files are javascript source files\nthat have each attribute of the Test (above) as global assignable\nvariables:\n\n#### stupid.tjs ####\n\n    name = \"dumb test\"\n    plan = 1\n    provides = ['no value']\n    test = function() { this.ok(true, 'eureka'); }\n\n### Larger integrations ###\n\nThe simple case can be solved using the `runtests` helper.\n\n    var runtests = require('trial').runtests;\n    var trial = runtests(\"./tests\");\n\n#### Junit output for CI integration ####\n\n    # var trial = new Trial()\n    var runtests = require('trial').runtests;\n    var trial = runtests(\"./tests\");\n    new Junit(trial, \"test_detail.xml\");\n\n","homepage":"https://github.com/postwait/node-trial#readme","bugs":{"url":"https://github.com/postwait/node-trial/issues"},"readmeFilename":"README.md"}