8000 robotframework/utest at v3.1.1 · pythonthings/robotframework · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"utest","repo":{"id":208552244,"defaultBranch":"master","name":"robotframework","ownerLogin":"pythonthings","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2019-09-15T06:31:30.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/51002450?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"v3.1.1","listCacheKey":"v0:1631443571.3110569","canEdit":false,"refType":"tag","currentOid":"dd185d8c3f32ba64dc2394212b3edcd191df416d"},"tree":{"items":[{"name":"api","path":"utest/api","contentType":"directory"},{"name":"conf","path":"utest/conf","contentType":"directory"},{"name":"htmldata","path":"utest/htmldata","contentType":"directory"},{"name":"model","path":"utest/model","contentType":"directory"},{"name":"output","path":"utest/output","contentType":"directory"},{"name":"parsing","path":"utest/parsing","contentType":"directory"},{"name":"reporting","path":"utest/reporting","contentType":"directory"},{"name":"resources","path":"utest/resources","contentType":"directory"},{"name":"result","path":"utest/result","contentType":"directory"},{"name":"running","path":"utest/running","contentType":"directory"},{"name":"testdoc","path":"utest/testdoc","contentType":"directory"},{"name":"tidy","path":"utest/tidy","contentType":"directory"},{"name":"utils","path":"utest/utils","contentType":"directory"},{"name":"variables","path":"utest/variables","contentType":"directory"},{"name":"webcontent","path":"utest/webcontent","contentType":"directory"},{"name":"writer","path":"utest/writer","contentType":"directory"},{"name":"README.rst","path":"utest/README.rst","contentType":"file"},{"name":"__init__.py","path":"utest/__init__.py","contentType":"file"},{"name":"envjs.bootstrap.js","path":"utest/envjs.bootstrap.js","contentType":"file"},{"name":"run.py","path":"utest/run.py","contentType":"file"},{"name":"run_jasmine.py","path":"utest/run_jasmine.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.rst","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRobot Framework unit tests\u003c/h1\u003e\u003ca id=\"user-content-robot-framework-unit-tests\" class=\"anchor\" aria-label=\"Permalink: Robot Framework unit tests\" href=\"#robot-framework-unit-tests\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca name=\"user-content-introduction\"\u003e\u003c/a\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eIntroduction\u003c/h2\u003e\u003ca id=\"user-content-introduction\" class=\"anchor\" aria-label=\"Permalink: Introduction\" href=\"#introduction\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRobot Framework's unit tests are implemented using Python's \u003ca href=\"https://docs.python.org/2/library/unittest.html\" rel=\"nofollow\"\u003eunittest\u003c/a\u003e module, and they\nall are in subdirectories of this directory. These tests are executed\nautomatically when all acceptance tests are executed, and how to run\nunit tests manually is explained below.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eMost of the Robot Framework's features are tested with acceptance test\nusing the framework itself. Some of those tests would normally be\nbetter implemented as unit tests, but we want to push the framework to\nits limits (and eat our own dog food). A consequence to this is that\nsome features are not unit tested at all.\u003c/p\u003e\n\u003ca name=\"user-content-license-and-copyright\"\u003e\u003c/a\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eLicense and copyright\u003c/h2\u003e\u003ca id=\"user-content-license-and-copyright\" class=\"anchor\" aria-label=\"Permalink: License and copyright\" href=\"#license-and-copyright\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAll content in the \u003ccode\u003eutest\u003c/code\u003e directory is under the following copyright:\u003c/p\u003e\n\u003cpre\u003eCopyright 2008-2015 Nokia Networks\nCopyright 2016- Robot Framework Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\u003c/pre\u003e\n\u003ca name=\"user-content-running-unit-tests\"\u003e\u003c/a\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRunning unit tests\u003c/h2\u003e\u003ca id=\"user-content-running-unit-tests\" class=\"anchor\" aria-label=\"Permalink: Running unit tests\" href=\"#running-unit-tests\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAll unit tests can be run with script \u003ccode\u003erun.py\u003c/code\u003e. To get more\ninformation run \u003ccode\u003epython run.py --help\u003c/code\u003e. It can be executed with\nPython, Jython and IronPython to verify interoperability with all supported\ninterpreters.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUnit test files should always start with prefix \u003ccode\u003etest_\u003c/code\u003e. This is the\nmechanism the unit tests are found by the \u003ccode\u003erun.py\u003c/code\u003e script.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eTo run only certain unit tests you need to set the Robot Framework's \u003ccode\u003esrc\u003c/code\u003e\nfolder to \u003ccode\u003ePYTHONPATH\u003c/code\u003e and run the test like \u003ccode\u003epython path/test_xxx.py\u003c/code\u003e.\nThere are also some unit tests that need some other modules i.e. libraries\nused also in acceptance tests. The full list of paths needed to run all\nthe unit tests can be found from the beginning of the \u003ccode\u003erun.py\u003c/code\u003e file.\nOften it is just easier to run all the unit tests.\u003c/p\u003e\n\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Robot Framework unit tests","anchor":"robot-framework-unit-tests","htmlText":"Robot Framework unit tests"},{"level":2,"text":"Introduction","anchor":"introduction","htmlText":"Introduction"},{"level":2,"text":"License and copyright","anchor":"license-and-copyright","htmlText":"License and copyright"},{"level":2,"text":"Running unit tests","anchor":"running-unit-tests","htmlText":"Running unit tests"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonthings%2Frobotframework%2Ftree%2Fv3.1.1%2Futest"}},"totalCount":21,"showBranchInfobar":false},"fileTree":{"":{"items":[{"name":"atest","path":"atest","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"utest","path":"utest","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"AUTHORS.txt","path":"AUTHORS.txt","contentType":"file"},{"name":"BUILD.rst","path":"BUILD.rst","contentType":"file"},{"name":"CONTRIBUTING.rst","path":"CONTRIBUTING.rst","contentType":"file"},{"name":"COPYRIGHT.txt","path":"COPYRIGHT.txt","contentType":"file"},{"name":"INSTALL.rst","path":"INSTALL.rst","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"pom.xml","path":"pom.xml","contentType":"file"},{"name":"requirements-build.txt","path":"requirements-build.txt","contentType":"file"},{"name":"rundevel.py","path":"rundevel.py","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tasks.py","path":"tasks.py","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":2.2774829999999997,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/pythonthings/robotframework/branches":{"post":"ceXo935QFO4vHIZlu2bY-Kf-KabYhntJiYETR8rU6awlC5RjV7gwOfAB5Wi8CgzeEmb2KPijWa0oV-lYXH3tlQ"},"/pythonthings/robotframework/branches/fetch_and_merge/v3.1.1":{"post":"gwXxd_Gbl2JElSCbHVxpc6ufSZtOQ2vZyC7jg84QYUGQgHV1PPIux2Xs39UkkN0zzlNNXs1lIMZhwSXIXaDuxA"},"/pythonthings/robotframework/branches/fetch_and_merge/v3.1.1?discard_changes=true":{"post":"Y35GtMm9eDzLX7bahhs9IbudIuxc3yC5GPb_nd651gtw-8K2BNTBmeomSZS_14lh3lEmKd_5a6axGTnWTQlZjg"}}},"title":"robotframework/utest at v3.1.1 · pythonthings/robotframework","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-b84e9496fc59.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0