semvec/pypi-packages huggingface dataset:
gemini-pro-unit-tester 0.5
This package contains implementation of a unit testing application with Gemini Pro integrated into it.
License: MIT

# 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.

![Application](images/Application.png)

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.

![Unit Testing](images/Unit%20Testing.png)

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.

![Unit Test Results](images/Unit%20Test%20Results.png)

# 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.