GitHub Pre-release : BatchTest for CodeForces
By Asim Krishna Prasad
Posted on 12/02/15
Tag :
Github
After I started working with HTTP requests and web scrapping with Python I started working on this project of Batch-Testing for CoderForces and here is the first release of the project which implements all the basic functionalities.
Here is the link to the GitHub release
Here is the direct download link
Since this is a pre-release, you can have a look on the known issues and contribute too, here is the link to the GitHub Repository
Following is the ReadMe file of the application
Batch-Test for CodeForces : V.0.9
This application is to assist a competitive-programmer in a CodeForces round. This application downloads all the sample test cases for a problem and runs a user's solution program on all these test cases so that no time is wasted on manual checking of the solution.
Requisites
- Internet Connection (it should be working on cmd and should be allowed for all the applications)
- A little space in C: drive
- Sublime Text-3 (make sure it's included in the PATH-variables)
- To check Sublime Text-3 is included to PATH-variables
- Open a cmd window.
- Run "subl" in the cmd.
- If Sublime opens up, everything is perfect
- A default browser
- Working g++
- To check g++ is working
- Open a cmd window.
- Run "g++" in the cmd.
- If it throws an error of missing file, everything is perfect
Installation
- Download all the files from here.
- Shift the CF folder to "C:\". This is very important for the application to work. The CF folder should be directly in C: drive
- Open Sublime-Text-3 (referred as Sublime here after), and change your build system
- GoTo "Tools -> Build System -> New Build System".
- A file with some pre-written code will open, delete all the contents of this file.
- In the src folder you'll find a file CF.sublime-build. Copy the contents of this file in the file that had opened up in the previous step.
- Save this file in the default location with name CF
- GoTo "Tools -> Build System" and select CF
- Your Sublime is now configured
- Change the template code in template.cpp as it suits you.
Technology Used
- The application is made using Python-2.7.9 and Shell scripting
- BeautifulSoup module is used alongwith requests in Python
Testing
The program has been tested on Windows-8.1, 64-bit
Usage
Just click on the start.bat file in the C:/CF/dist/ folder and it'll do the job.
Code your solution and press Ctrl+B to compile the code.
Use Ctrl+Shift+B to run the program on the test files
NOTE:
It's better to have a shortcut of the start.bat file on Desktop or somewhere more accessible.
To understand the source files and working of the application, refer THIS POST
For Hugs and Bugs drop a mail at asimkprasad@gmail.com
COMMENTS :