# gemini-pro-unit-tester
Ever wondered about running unit tests without even to write a single line of code? Well, **Gemini Pro Unit Tester**
allows you to do so easily!
# Source Code
The source code of the application **Gemini Pro Unit Tester** is available in
[Source Code](https://github.com/GlobalCreativeApkDev/gemini-pro-unit-tester/blob/master/main.py).
# Installation
```
pip install gemini-pro-unit-tester
```
# How to Use the Application?
Pre-requisites:
1. [Python](https://www.python.org/downloads/) installed in your device.
2. .env file in the same directory as <GEMINI_PRO_UNIT_TESTER_DIRECTORY> and has the value of GEMINI_API_KEY.
First, open a Terminal or Command Prompt window and run the following command.
```
cd <GEMINI_PRO_UNIT_TESTER_DIRECTORY>
python3 main.py
```
**Note:** Replace <GEMINI_PRO_UNIT_TESTER_DIRECTORY> with the path to the directory of the
application **Gemini Pro Unit Tester**.
Then, the application will start with something looking like in the screenshot below.

You will then be asked to input the following values.
1. Temperature - between 0 and 1 inclusive
2. Top P - between 0 and 1 inclusive
3. Top K - at least 1
4. Max output tokens - at least 1
The following screenshot shows what is displayed after inputting the mentioned values.

You are required to enter the following values.
1. The programming language you want to run unit tests in - must be an existing programming language.
2. The path of the file you want to test - the file mentioned must be a file of the programming language you entered in
step number 1 above (i.e., if you entered "Python" in step 1, the path of the file you entered must be a Python file).
Once you enter the values mentioned above, the application will display the command used to run unit tests, together
with the test results. Then, you will be asked whether you still want to continue unit testing or not. If you enter
'Y', you will be redirected to an application window like in screenshot above. Else, you will exit the application.

# Progress
1. Supports creating and running unit tests for one file. (ongoing)
2. Supports creation of unit tests based on code in multiple files. (pending)
# Version History
1. Version 0.5 (Release Date: 29 December 2023):
* Supports creating and running unit tests for one file.
2. Version 1 (Release Date: TBA, 2024):
* Supports creation of unit tests based on code in multiple files.
Raw data
{
"_id": null,
"home_page": "https://github.com/GlobalCreativeApkDev/gemini-pro-unit-tester",
"name": "gemini-pro-unit-tester",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "GlobalCreativeApkDev",
"author_email": "globalcreativeapkdev2022@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/41/a8/a62ffd03ad61bfcc02e96d4237a7e434a9c1af3f57100e0268a594f6e880/gemini-pro-unit-tester-0.5.tar.gz",
"platform": null,
"description": "# gemini-pro-unit-tester\n\nEver wondered about running unit tests without even to write a single line of code? Well, **Gemini Pro Unit Tester**\nallows you to do so easily!\n\n# Source Code\n\nThe source code of the application **Gemini Pro Unit Tester** is available in \n[Source Code](https://github.com/GlobalCreativeApkDev/gemini-pro-unit-tester/blob/master/main.py).\n\n# Installation\n\n```\npip install gemini-pro-unit-tester\n```\n\n# How to Use the Application?\n\nPre-requisites:\n1. [Python](https://www.python.org/downloads/) installed in your device.\n2. .env file in the same directory as <GEMINI_PRO_UNIT_TESTER_DIRECTORY> and has the value of GEMINI_API_KEY.\n\nFirst, open a Terminal or Command Prompt window and run the following command.\n\n```\ncd <GEMINI_PRO_UNIT_TESTER_DIRECTORY>\npython3 main.py\n```\n\n**Note:** Replace <GEMINI_PRO_UNIT_TESTER_DIRECTORY> with the path to the directory of the \napplication **Gemini Pro Unit Tester**.\n\nThen, the application will start with something looking like in the screenshot below.\n\n\n\nYou will then be asked to input the following values.\n\n1. Temperature - between 0 and 1 inclusive\n2. Top P - between 0 and 1 inclusive\n3. Top K - at least 1\n4. Max output tokens - at least 1\n\nThe following screenshot shows what is displayed after inputting the mentioned values.\n\n\n\nYou are required to enter the following values.\n\n1. The programming language you want to run unit tests in - must be an existing programming language.\n2. The path of the file you want to test - the file mentioned must be a file of the programming language you entered in \nstep number 1 above (i.e., if you entered \"Python\" in step 1, the path of the file you entered must be a Python file).\n\nOnce you enter the values mentioned above, the application will display the command used to run unit tests, together\nwith the test results. Then, you will be asked whether you still want to continue unit testing or not. If you enter\n'Y', you will be redirected to an application window like in screenshot above. Else, you will exit the application.\n\n\n\n# Progress\n\n1. Supports creating and running unit tests for one file. (ongoing)\n2. Supports creation of unit tests based on code in multiple files. (pending)\n\n# Version History\n\n1. Version 0.5 (Release Date: 29 December 2023):\n* Supports creating and running unit tests for one file.\n\n2. Version 1 (Release Date: TBA, 2024):\n* Supports creation of unit tests based on code in multiple files.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "This package contains implementation of a unit testing application with Gemini Pro integrated into it.",
"version": "0.5",
"project_urls": {
"Homepage": "https://github.com/GlobalCreativeApkDev/gemini-pro-unit-tester"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c3a2cbb5f7f50fb98de507e6b9022af644a4701381bb782b0fbf48bf95d94723",
"md5": "37d8440bc6452c7e533f49533a08573c",
"sha256": "76a5b5bbdb7e1e6ef80219a2cd06c7dc0dec4c6d5987e1bbee2b796bf1aa9820"
},
"downloads": -1,
"filename": "gemini_pro_unit_tester-0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "37d8440bc6452c7e533f49533a08573c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3477,
"upload_time": "2023-12-28T12:30:10",
"upload_time_iso_8601": "2023-12-28T12:30:10.762562Z",
"url": "https://files.pythonhosted.org/packages/c3/a2/cbb5f7f50fb98de507e6b9022af644a4701381bb782b0fbf48bf95d94723/gemini_pro_unit_tester-0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "41a8a62ffd03ad61bfcc02e96d4237a7e434a9c1af3f57100e0268a594f6e880",
"md5": "dac4eeaa21f351fc4790667900b87228",
"sha256": "16d2d83f7f9735ab175d0153023c28b031d2ba10730b67ad2c003fed453087a7"
},
"downloads": -1,
"filename": "gemini-pro-unit-tester-0.5.tar.gz",
"has_sig": false,
"md5_digest": "dac4eeaa21f351fc4790667900b87228",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3153,
"upload_time": "2023-12-28T12:30:13",
"upload_time_iso_8601": "2023-12-28T12:30:13.342277Z",
"url": "https://files.pythonhosted.org/packages/41/a8/a62ffd03ad61bfcc02e96d4237a7e434a9c1af3f57100e0268a594f6e880/gemini-pro-unit-tester-0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-28 12:30:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "GlobalCreativeApkDev",
"github_project": "gemini-pro-unit-tester",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "gemini-pro-unit-tester"
}