Package: psgtest
psgtestA PySimpleGUI ApplicationSimple Python TestingRun your Python programs using the interpreter version of your choice,
and display the output in a GUI window.FeaturesProject testing application to perform regression, stress, and compatibility testingRun your Python test programs at the click of a buttonTest using any Python interpreter versionRun batches of tests to perform regression testing and stress testingGet programs output in individual tabs for easy debuggingInstallationUsing PIP with PyPIThe latest official release of PySimpleGUI products can be found on PyPI.  To pip install the demo applications from PyPI, use this commandIf you use the commandpythonon your computer to invoke Python (Windows):python -m pip install --upgrade psgtestIf you use the commandpython3on your computer to invoke Python (Linux, Mac):python3 -m pip install --upgrade psgtestUsing PIP with GitHubYou 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:If you use the commandpythonon your computer to invoke Python (Windows):python-mpipinstall--upgradehttps://github.com/PySimpleGUI/psgtest/zipball/mainIf you use the commandpython3on your computer to invoke Python (Linux, Mac):python3-mpipinstall--upgradehttps://github.com/PySimpleGUI/psgtest/zipball/mainUsageOnce installed, launch psgtest by typing the following in your command line:psgtestAboutThis is an example of another utility used in the development of
PySimpleGUI that is being released for other PySimpleGUI users to use
either as a standalone tool or as example code / design pattern to
follow.It can be challenging to manage multiple versions of Python and the
need to test across multiple versions.  Virtual Environments are one
approach that are often used.  psgtest does not use virtual
environments.  Instead, it invokes the Python interpreter of your
choice directly.The advantage is that changing which version of Python that's used is
changed in a single drop-down menu selection as shown in the example
GIF above.  The session in the GIF shows launching the PySimpleGUI
main test harness using multiple versions of Python by selecting the
version from the drop-down at the top.Executing Multiple ProgramsTo run multiple programs, select the files to run from the list of
files on the left portion of the window.  Then click the "Run" button.Editing ProgramsYou can also edit the programs selected by clicking the "Edit" button.
You will need to set up your editor using the PySimpleGUI global
settings.  If you have pip installed a version of PySimpleGUI that's
4.53.0.14 or greater, then you can typepsgsettingsfrom the command
line.  You can also change the settings by callingsg.main()(or
typing from the command linepsgmain).Specifying/Selecting Python Interpreter LocationsThe Setup Window is where you enter the path to each version of Python
that you want to test with.  The settings are stored in a file and
thus will be saved from one run to another.Selecting the version to use can be done in either the settings window
or using the drop-down menu in the main window.OutputThe stdout and stderr from each program you execute are displayed in a
tab with a name that matches your filename.  Each program you run will
open a new tab.In each tab you'll find 2 buttons that operate on the output shown in
that tab.Use theCopy To Clipboardbutton to copy the contents of the output
to the clipboard.Use theClearbutton to delete the output.TheClose Tabbutton closes the tab as does the right click menu
itemClose.  If you run the program again after closing the tab, the
old contents of the tab are retained and shown when the tab is
"re-opened".  (See the GIF above for an example)Make a Windows ShortcutIf you're running Windows, then you can usepsgshortcutto make a
shortcut to the .pyw file (if you download psgtest from GitHub) or the
.py file (if you pip installed).  The icon forpsgtestis in this
repo and is also included when you pip install psgtest.  It's in the
same folder as the gui.py file.You can find the location of psgtest after pip installing it by
running psgtest, right clicking, and choosing "File Location".  You'll
be shown where thegui.pyfile is located (the name of the psgtest
program when pip installed).  It will usually be located in thesite-packagesfolder in a folder namedpsgtest.License & CopyrightCopyright 2023-2024 PySimpleSoft, Inc. and/or its licensors.This is a free-to-use "Utility" and is licensed under the
PySimpleGUI License Agreement, a copy of which is included in the
license.txt file and also available athttps://pysimplegui.com/eula.Please see Section 1.2 of the license regarding the use of this Utility,
and seehttps://pysimplegui.com/faqfor any questions.ContributingWe are happy to receive issues describing bug reports and feature
requests! If your bug report relates to a security vulnerability,
please do not file a public issue, and please instead reach out to us
atissues@PySimpleGUI.com.We do not accept (and do not wish to receive) contributions of
user-created or third-party code, including patches, pull requests, or
code snippets incorporated into submitted issues. Please do not send
us any such code! Bug reports and feature requests should not include
any source code.If you nonetheless submit any user-created or third-party code to us,
(1) you assign to us all rights and title in or relating to the code;
and (2) to the extent any such assignment is not fully effective, you
hereby grant to us a royalty-free, perpetual, irrevocable, worldwide,
unlimited, sublicensable, transferrable license under all intellectual
property rights embodied therein or relating thereto, to exploit the
code in any manner we choose, including to incorporate the code into
PySimpleGUI and to redistribute it under any terms at our discretion.