{ "info": { "author": "Arseni Mourzenko", "author_email": "arseni.mourzenko@pelicandd.com", "bugtrack_url": null, "classifiers": [], "description": "CI Unit Test\n============\n\nCI Unit Test is a library which enables to retrieve the results of unit tests in JSON format. This may be used in custom Continuous Integration systems which need to process the results of unit tests.\n\nThe results can be saved as is to a NoSQL database, or can be returned as a Python object in order to be combined with other information before being saved.\n\nUsage\n-----\n\nThe results in JSON format can be obtained by using `JsonTestRunner`:\n\n.. code:: python\n\n suite = unittest.TestLoader().loadTestsFromTestCase(TestsDemo)\n json = ciunittest.JsonTestRunner().run(suite, formatted=True)\n print(json)\n\nSince the first line uses unittest, all unittest features are available, such as the auto-discovery of unit tests in a project directory:\n\n.. code:: python\n\n suite = unittest.TestLoader().discover(targetPath)\n\nTo obtain the results as a Python object, use `ObjectTestRunner`:\n\n.. code:: python\n\n suite = unittest.TestLoader().loadTestsFromTestCase(TestsDemo)\n result = ciunittest.ObjectTestRunner().run(suite)\n print('Done %d tests in %d ms.' %\n (len(result['results']), result['spentMilliseconds']))\n\nTo perform an action at the beginning of every test (independently of the runner being used,) do:\n\n.. code:: python\n\n suite = unittest.TestLoader().loadTestsFromTestCase(TestsDemo)\n runner = ciunittest.JsonTestRunner()\n runner.on_start = lambda test: print(\".\", end=\"\", flush=True)\n result = runner.run(suite)\n ...\n\nIn the previous code sample, every time the runner is ready to start a new test, a dot is displayed in the terminal.\n\nSimilarly, one can execute arbitrary code at the end of every test. The test result, that is `ciunittest.Success`, `ciunittest.Error` or `ciunittest.Failure`, will be passed as a second parameter to the function.\n\n.. code:: python\n\n runner.on_end = lambda test, result: print(result, flush=True)\n\nThe code is inspired by http://pythonhosted.org/gchecky/unittest-pysrc.html\n\nIf you have any question or remark, please contact me at arseni.mourzenko@pelicandd.com. Critics are also welcome, since I have used Python for only a few days, and probably get lots of things wrong.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://go.pelicandd.com/n/python-ciunittest", "keywords": "unittest ci continuous-integration json", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "CIUnitTest", "package_url": "https://pypi.org/project/CIUnitTest/", "platform": "", "project_url": "https://pypi.org/project/CIUnitTest/", "project_urls": { "Homepage": "http://go.pelicandd.com/n/python-ciunittest" }, "release_url": "https://pypi.org/project/CIUnitTest/1.0.9/", "requires_dist": null, "requires_python": "", "summary": "Provides test results of unittest in JSON format, in order to be able to use the results programmatically.", "version": "1.0.9" }, "last_serial": 3398578, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "a1c4f6ec49ebb529dd03d963cf68c504", "sha256": "1f4796a808596bdee4d954bfa23169a0dab4607f60b4899b9524597ad765e781" }, "downloads": -1, "filename": "CIUnitTest-1.0.win-amd64.exe", "has_sig": false, "md5_digest": "a1c4f6ec49ebb529dd03d963cf68c504", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 225021, "upload_time": "2013-10-06T12:09:32", "url": "https://files.pythonhosted.org/packages/97/43/f5ee8a8b79c16c6f6419971555db0cc6f0804b2d272dc0c552ce1f38fd7a/CIUnitTest-1.0.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "a0939e6e152c590a5fb6f95e8e22972e", "sha256": "c41a8e3cf8a5afe33d18dbd5d164c729951fd4949a938defee07d4274d049639" }, "downloads": -1, "filename": "CIUnitTest-1.0.zip", "has_sig": false, "md5_digest": "a0939e6e152c590a5fb6f95e8e22972e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3432, "upload_time": "2013-10-06T12:09:28", "url": "https://files.pythonhosted.org/packages/cd/b9/f1707f9fe6251408ffd42f0c080998605895303af29516d8d8ef45783242/CIUnitTest-1.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "27901feb61317717543af9d7c761d9b7", "sha256": "a355a8b574cff501d32f1a8719f342931190a20324c4e2df335432df3a9b7dcf" }, "downloads": -1, "filename": "CIUnitTest-1.0.1.win-amd64.exe", "has_sig": false, "md5_digest": "27901feb61317717543af9d7c761d9b7", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 225058, "upload_time": "2013-10-06T12:38:12", "url": "https://files.pythonhosted.org/packages/fe/72/096dd09efb239741fe8f6ede730897b73c7a8af06bcc8c4c8babca27fb91/CIUnitTest-1.0.1.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "637bc4348decdf669f29f8d4a1da27cf", "sha256": "bdfce958aa40cb15bb8437aeef047fa0a9ae2c80cd7d9a54a5923053a048a00d" }, "downloads": -1, "filename": "CIUnitTest-1.0.1.zip", "has_sig": false, "md5_digest": "637bc4348decdf669f29f8d4a1da27cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2013-10-06T12:38:09", "url": "https://files.pythonhosted.org/packages/eb/99/fd8d69972734237e68d7716917989db2324f20166605b12667374180e07c/CIUnitTest-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "dae5801d67cef16a95437ed274899007", "sha256": "751e358d661249528bbe20a86bd8a6ef2168b38ae6e7243c6153edd5c91f4fdc" }, "downloads": -1, "filename": "CIUnitTest-1.0.2.win-amd64.exe", "has_sig": false, "md5_digest": "dae5801d67cef16a95437ed274899007", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 225058, "upload_time": "2013-10-06T12:58:31", "url": "https://files.pythonhosted.org/packages/22/b6/cdbe264c6a3329fd63397a338adc39884c6537debd7bc702c6f77b29957d/CIUnitTest-1.0.2.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "8bb461626a77ad0f1777fb76ab24ccb0", "sha256": "e522c63b5487e058e618cd24a30859baba01019a0110b0bee0a56d7492e3e85a" }, "downloads": -1, "filename": "CIUnitTest-1.0.2.zip", "has_sig": false, "md5_digest": "8bb461626a77ad0f1777fb76ab24ccb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2825, "upload_time": "2013-10-06T12:58:27", "url": "https://files.pythonhosted.org/packages/a3/02/371029aaf3ba7caff1afe269d63948bc822f18e6c37e541190fc19fe44f5/CIUnitTest-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "313c5d18c1fc2c68a2a1aed189ad01a6", "sha256": "0cf670c74393a9c6721f1014f5d57a3d60944d03f12cb213f4e5fc2b30891906" }, "downloads": -1, "filename": "CIUnitTest-1.0.3.win-amd64.exe", "has_sig": false, "md5_digest": "313c5d18c1fc2c68a2a1aed189ad01a6", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 226770, "upload_time": "2013-10-06T13:01:22", "url": "https://files.pythonhosted.org/packages/f0/20/3e95c1ad81e7ed0d126613e53f04194b6faf74b5bec65fd2986158eacc77/CIUnitTest-1.0.3.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "d4225e85a5954aee7b5958f25804fa6c", "sha256": "0eb4988fa43325c8f3610ddcb859097af7fdaf7d8b5b469ee0d62be0a48a5e9a" }, "downloads": -1, "filename": "CIUnitTest-1.0.3.zip", "has_sig": false, "md5_digest": "d4225e85a5954aee7b5958f25804fa6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3373, "upload_time": "2013-10-06T13:01:19", "url": "https://files.pythonhosted.org/packages/a9/5c/4314c8a5e91c8b19ac41111c85f0c8b7361252185a698c26e68720ab2ab6/CIUnitTest-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "f2953875bf7b7fac6dbebb680f5c32d0", "sha256": "c08a5b512a8337e929638b2cf31e7f79ad3d8469df95d7c973160e9a9a565b78" }, "downloads": -1, "filename": "CIUnitTest-1.0.4.win-amd64.exe", "has_sig": false, "md5_digest": "f2953875bf7b7fac6dbebb680f5c32d0", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 226756, "upload_time": "2013-10-06T13:05:27", "url": "https://files.pythonhosted.org/packages/a0/67/76ade07ff76bc6524014ba10e9fc89d24e7b1ee9b5a6145f6a33c71ba048/CIUnitTest-1.0.4.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "cd7cc051fcbfb6669b35e03a5daddace", "sha256": "81176d57b086edb7073e900b9e1055f88cdd602bb697457cc10549f2212e5584" }, "downloads": -1, "filename": "CIUnitTest-1.0.4.zip", "has_sig": false, "md5_digest": "cd7cc051fcbfb6669b35e03a5daddace", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3371, "upload_time": "2013-10-06T13:05:23", "url": "https://files.pythonhosted.org/packages/5e/dc/fa1fad8c6f66b8df948c4a4de56ff89f1c03d149ec66a99cc55edf00a218/CIUnitTest-1.0.4.zip" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "6762005e9d7c8c282f6c6be66de65ada", "sha256": "90c55fbeca5760bc4a3c0cb0efb3f7caa758ae41f5d73ba7020ed25136cc3667" }, "downloads": -1, "filename": "CIUnitTest-1.0.5.win-amd64.exe", "has_sig": false, "md5_digest": "6762005e9d7c8c282f6c6be66de65ada", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 226770, "upload_time": "2013-10-06T13:08:06", "url": "https://files.pythonhosted.org/packages/72/30/1fad5bc776d2e88aeca57ff05ee25951e8a565bd2ac442322f290231b2c3/CIUnitTest-1.0.5.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "187b1be2de31a1c8f06a857cf8786df9", "sha256": "83c5caa12ba08e98ab4d40eed64bf9eddf5fa399e5dbd361134c08b903d2e1a8" }, "downloads": -1, "filename": "CIUnitTest-1.0.5.zip", "has_sig": false, "md5_digest": "187b1be2de31a1c8f06a857cf8786df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3374, "upload_time": "2013-10-06T13:08:03", "url": "https://files.pythonhosted.org/packages/d4/11/ee5f2d16749a16b5dc2375e8b847b52d0bf0c1fd9ef61fedfcd42ceced3e/CIUnitTest-1.0.5.zip" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "850b1b852756e5d68782155dbb37fd0d", "sha256": "ca7895e4ea931657e40b9cd383591e378d0928b9433b33d7ccc34a27f0e6bb48" }, "downloads": -1, "filename": "CIUnitTest-1.0.6.tar.gz", "has_sig": false, "md5_digest": "850b1b852756e5d68782155dbb37fd0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2573, "upload_time": "2014-06-29T19:15:05", "url": "https://files.pythonhosted.org/packages/31/6e/a2d36cd360cb0f0d7362f0c58de9f2f72a82c5e4cca38d17dd64cda6a1d1/CIUnitTest-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "70db26dc1b5b3bdd95b6a990e4b96240", "sha256": "448147e432895eab67b24464e511f41d5551ba24c98c94256a90e8bf79faa563" }, "downloads": -1, "filename": "CIUnitTest-1.0.7.tar.gz", "has_sig": false, "md5_digest": "70db26dc1b5b3bdd95b6a990e4b96240", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2849, "upload_time": "2017-04-13T21:11:30", "url": "https://files.pythonhosted.org/packages/21/1f/82286ecd0f7d26d16e12d8e5d37efc53310541369d526efce1370e67bbbb/CIUnitTest-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "dbcd9320f2f380bac32de619e0e95178", "sha256": "488de9647d19fe57fcc86b3620ed096e7f960d846846efae64fcbb37ebd58885" }, "downloads": -1, "filename": "CIUnitTest-1.0.8.tar.gz", "has_sig": false, "md5_digest": "dbcd9320f2f380bac32de619e0e95178", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2972, "upload_time": "2017-04-14T21:40:43", "url": "https://files.pythonhosted.org/packages/36/4f/c394c93de70cc51e01ecab6ab3baf8b686298c5b09f95c7aeff90e816891/CIUnitTest-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "f29d76d0ecf6bbc66521bd95740a0722", "sha256": "22f9012ea85758e848192863012e249de16eee2f75371ef510a6ce6272e6501c" }, "downloads": -1, "filename": "CIUnitTest-1.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "f29d76d0ecf6bbc66521bd95740a0722", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5248, "upload_time": "2017-12-07T19:59:46", "url": "https://files.pythonhosted.org/packages/4c/15/76f83e663dfce9e3f87b239d52a341c01c531668eee7c30d86be415e34e1/CIUnitTest-1.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ea637770f2e72587e8ea9de43b939f2", "sha256": "e5138430654e38ecd39f3362e6e4247a001c61ce7c6630a4d4c7ee9a0cb9d55b" }, "downloads": -1, "filename": "CIUnitTest-1.0.9.tar.gz", "has_sig": false, "md5_digest": "9ea637770f2e72587e8ea9de43b939f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3210, "upload_time": "2017-12-07T19:59:48", "url": "https://files.pythonhosted.org/packages/76/d8/31359b5284ab77a369b5c4f6b7614b5820bce4b378b215fab785e824e2fd/CIUnitTest-1.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f29d76d0ecf6bbc66521bd95740a0722", "sha256": "22f9012ea85758e848192863012e249de16eee2f75371ef510a6ce6272e6501c" }, "downloads": -1, "filename": "CIUnitTest-1.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "f29d76d0ecf6bbc66521bd95740a0722", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5248, "upload_time": "2017-12-07T19:59:46", "url": "https://files.pythonhosted.org/packages/4c/15/76f83e663dfce9e3f87b239d52a341c01c531668eee7c30d86be415e34e1/CIUnitTest-1.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ea637770f2e72587e8ea9de43b939f2", "sha256": "e5138430654e38ecd39f3362e6e4247a001c61ce7c6630a4d4c7ee9a0cb9d55b" }, "downloads": -1, "filename": "CIUnitTest-1.0.9.tar.gz", "has_sig": false, "md5_digest": "9ea637770f2e72587e8ea9de43b939f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3210, "upload_time": "2017-12-07T19:59:48", "url": "https://files.pythonhosted.org/packages/76/d8/31359b5284ab77a369b5c4f6b7614b5820bce4b378b215fab785e824e2fd/CIUnitTest-1.0.9.tar.gz" } ] }