aashutoshrathi / Testcase-Generator

⚡️ Handy script for HackerRank, HackerEarth and CodeChef TCs Generation.
https://tcgen.aashutosh.dev/
MIT License
104 stars 55 forks source link

Make this into pip package #172

Open thepushkarp opened 4 years ago

thepushkarp commented 4 years ago

Actual Behaviour

Right now, to generate test-case files, one needs to run tc_gen.py and follow the prompt to choose the language and platform. The input generation is written in the source code of the program itself, in the 'input area' which needs to be modified to generate test-cases for each new question. This process makes the code vulnerable to accidental changes and can also be a little overwhelming to new users. It also restricts the user to generate the input files in Python only.

Expected Behaviour

This Testcase Generator can be made into a PyPI package that works something like this: tc_gen -n{num} --platform <link_to_input_generation_file> <link_to_output_logic_file>

This works as:

This would make the source code independent and would be more user-friendly.

The above is just a rough plan of making it work as a package. There are many more details that need to be discussed and planned and more features that can be added which we can discuss here.

Would you like to work on the issue?

Yes

thepushkarp commented 4 years ago

Would need some major major refactors and will bring several breaking changes.