The Code Comparison and Test Generation Tool is an innovative application designed to facilitate the comparison of code snippets and their outputs. This tool enables users to effortlessly input multiple code snippets, execute them, and visually compare the results. Additionally, the application leverages artificial intelligence to assist users in generating tests based on the provided snippets, enhancing productivity and code reliability.
- Code Snippet Comparison: Input and compare the outputs of multiple code snippets seamlessly.
- Automated Test Generation: Utilize an integrated AI model to generate comprehensive tests based on your code.
- Intuitive Graphical User Interface: A user-friendly GUI that simplifies interactions and enhances usability.
- Standalone Executable: Easily run the application on your local machine without needing to set up a development environment.
Explore the functionality of the application through the following demonstration videos:
To set up the application on your local machine, follow these steps:
-
Clone the Repository:
git clone https://github.com/Mostafa-Bahnasy/Testing-Code-Tool.git cd Testing-Code-Tool -
Install Required Dependencies: Ensure Python is installed on your system, then execute the following command to install the necessary packages:
pip install -r requirements.txt- Run the Application::
- You can launch the application directly using the provided .exe file.
To use the AI model in this project, you need to download the Ollama CLI. Follow these steps:
-
Download the Ollama CLI from the following link: Ollama Download.
-
Once you have installed the CLI, run the following bash script to start the AI model:
ollama run phi3.5Make sure you have the necessary permissions to execute the script and that the Ollama CLI is correctly installed on your system.
- Python
- Tkinter (for GUI)
- AI Model phi3.5
Contributions to enhance the functionality of this project are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request detailing your changes. For any issues or feature requests, please open an issue in the repository.
If you encounter issues during installation or usage, please check the following:
- Ensure you have Python and pip installed correctly.
- Check the console for any error messages for guidance.
- Adding automated tests, allowing users to compare code snippets online by their links on popular platforms such as Codeforces, Atcoder, and others.
- Improving GUI responsiveness.
For further information, feel free to contact me at [mustafaabdallah2003@gmail.com].


