{"id":17913519,"url":"https://github.com/pysimplegui/psgtest","last_synced_at":"2025-04-28T14:47:54.380Z","repository":{"id":224596367,"uuid":"763712159","full_name":"PySimpleGUI/psgtest","owner":"PySimpleGUI","description":"Program made with PySimpleGUI to make testing of apps easier","archived":false,"fork":false,"pushed_at":"2024-02-26T19:39:15.000Z","size":3815,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T13:13:03.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PySimpleGUI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-26T19:35:43.000Z","updated_at":"2025-01-18T07:27:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ebad304-32f3-48c4-b2e3-0be250f604c7","html_url":"https://github.com/PySimpleGUI/psgtest","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"d9fe85a8bfc4aed01662b1c1fd87ea346c90f663"},"previous_names":["pysimplegui/psgtest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PySimpleGUI%2Fpsgtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PySimpleGUI%2Fpsgtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PySimpleGUI%2Fpsgtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PySimpleGUI%2Fpsgtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PySimpleGUI","download_url":"https://codeload.github.com/PySimpleGUI/psgtest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251333787,"owners_count":21572893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T19:52:23.591Z","updated_at":"2025-04-28T14:47:54.345Z","avatar_url":"https://github.com/PySimpleGUI.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\u003cimg width=\"238\" height=\"135\" src=\"https://pysimplegui.net/images/logos/psglogofull.svg\"\u003e\u003cp\u003e\n\n  \u003ch2 align=\"center\"\u003epsgtest\u003c/h2\u003e\n  \u003ch2 align=\"center\"\u003eA PySimpleGUI Application\u003c/h2\u003e\n\u003c/p\u003e\n\nSimple Python Testing\n\nRun your Python programs using the interpreter version of your choice,\nand display the output in a GUI window.\n\n\n\n\n\n\n\n\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"850\" height=\"399\" src=\"screenshot.gif\"\u003e\u003cp\u003e\n\n\n\n## Features\n\n* Project testing application to perform regression, stress, and compatibility testing\n* Run your Python test programs at the click of a button\n* Test using any Python interpreter version\n* Run batches of tests to perform regression testing and stress testing\n* Get programs output in individual tabs for easy debugging\n\n## Installation\n\n### Using PIP with PyPI\n\nThe latest official release of PySimpleGUI products can be found on PyPI.  To pip install the demo applications from PyPI, use this command\n\n#### If you use the command `python` on your computer to invoke Python (Windows):\n\n`python -m pip install --upgrade psgtest`\n\n#### If you use the command `python3` on your computer to invoke Python (Linux, Mac):\n\n`python3 -m pip install --upgrade psgtest`\n\n### Using PIP with GitHub\n\nYou can also pip install the PySimpleGUI Applications that are in the PySimpleGUI GitHub account.  The GitHub versions have bug fixes and new programs/features that have not yet been released to PyPI. To directly pip install from that repo:\n\n#### If you use the command `python` on your computer to invoke Python (Windows):\n\n```bash\npython -m pip install --upgrade https://github.com/PySimpleGUI/psgtest/zipball/main\n```\n\n#### If you use the command `python3` on your computer to invoke Python (Linux, Mac):\n\n```bash\npython3 -m pip install --upgrade https://github.com/PySimpleGUI/psgtest/zipball/main\n```\n\n\n\n## Usage\n\nOnce installed, launch psgtest by typing the following in your command line:\n\n`psgtest`\n\n## About\n\nThis is an example of another utility used in the development of\nPySimpleGUI that is being released for other PySimpleGUI users to use\neither as a standalone tool or as example code / design pattern to\nfollow.\n\nIt can be challenging to manage multiple versions of Python and the\nneed to test across multiple versions.  Virtual Environments are one\napproach that are often used.  psgtest does not use virtual\nenvironments.  Instead, it invokes the Python interpreter of your\nchoice directly.\n\nThe advantage is that changing which version of Python that's used is\nchanged in a single drop-down menu selection as shown in the example\nGIF above.  The session in the GIF shows launching the PySimpleGUI\nmain test harness using multiple versions of Python by selecting the\nversion from the drop-down at the top.\n\n## Executing Multiple Programs\n\nTo run multiple programs, select the files to run from the list of\nfiles on the left portion of the window.  Then click the \"Run\" button.\n\n\n## Editing Programs\n\nYou can also edit the programs selected by clicking the \"Edit\" button.\nYou will need to set up your editor using the PySimpleGUI global\nsettings.  If you have pip installed a version of PySimpleGUI that's\n4.53.0.14 or greater, then you can type `psgsettings` from the command\nline.  You can also change the settings by calling `sg.main()` (or\ntyping from the command line `psgmain`).\n\n## Specifying/Selecting Python Interpreter Locations\n\nThe Setup Window is where you enter the path to each version of Python\nthat you want to test with.  The settings are stored in a file and\nthus will be saved from one run to another.\n\nSelecting the version to use can be done in either the settings window\nor using the drop-down menu in the main window.\n\n## Output\n\nThe stdout and stderr from each program you execute are displayed in a\ntab with a name that matches your filename.  Each program you run will\nopen a new tab.\n\nIn each tab you'll find 2 buttons that operate on the output shown in\nthat tab.\n\nUse the `Copy To Clipboard` button to copy the contents of the output\nto the clipboard.\n\nUse the `Clear` button to delete the output.\n\nThe `Close Tab` button closes the tab as does the right click menu\nitem `Close`.  If you run the program again after closing the tab, the\nold contents of the tab are retained and shown when the tab is\n\"re-opened\".  (See the GIF above for an example)\n\n## Make a Windows Shortcut\n\nIf you're running Windows, then you can use `psgshortcut` to make a\nshortcut to the .pyw file (if you download psgtest from GitHub) or the\n.py file (if you pip installed).  The icon for `psgtest` is in this\nrepo and is also included when you pip install psgtest.  It's in the\nsame folder as the gui.py file.\n\nYou can find the location of psgtest after pip installing it by\nrunning psgtest, right clicking, and choosing \"File Location\".  You'll\nbe shown where the `gui.py` file is located (the name of the psgtest\nprogram when pip installed).  It will usually be located in the\n`site-packages` folder in a folder named `psgtest`.\n\n## License \u0026 Copyright\n\nCopyright 2023-2024 PySimpleSoft, Inc. and/or its licensors.\n\nThis is a free-to-use \"Utility\" and is licensed under the\nPySimpleGUI License Agreement, a copy of which is included in the\nlicense.txt file and also available at https://pysimplegui.com/eula.\n\nPlease see Section 1.2 of the license regarding the use of this Utility,\nand see https://pysimplegui.com/faq for any questions.\n\n\n## Contributing\n\nWe are happy to receive issues describing bug reports and feature\nrequests! If your bug report relates to a security vulnerability,\nplease do not file a public issue, and please instead reach out to us\nat issues@PySimpleGUI.com.\n\nWe do not accept (and do not wish to receive) contributions of\nuser-created or third-party code, including patches, pull requests, or\ncode snippets incorporated into submitted issues. Please do not send\nus any such code! Bug reports and feature requests should not include\nany source code.\n\nIf you nonetheless submit any user-created or third-party code to us,\n(1) you assign to us all rights and title in or relating to the code;\nand (2) to the extent any such assignment is not fully effective, you\nhereby grant to us a royalty-free, perpetual, irrevocable, worldwide,\nunlimited, sublicensable, transferrable license under all intellectual\nproperty rights embodied therein or relating thereto, to exploit the\ncode in any manner we choose, including to incorporate the code into\nPySimpleGUI and to redistribute it under any terms at our discretion.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysimplegui%2Fpsgtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpysimplegui%2Fpsgtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysimplegui%2Fpsgtest/lists"}