Metadata-Version: 2.1
Name: code-tester
Version: 0.0.2
Summary: A command line tool for media editing
Home-page: http://github.com/srbcheema1/code_tester
Author: Sarbjit Singh
Author-email: srbcheema1@gmail.com
License: MIT License
Description: # CODE_TESTER
        
        [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.ocm/srbcheema1/code_tester/issues)
        [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/srbcheema1/code_tester)
        [![HitCount](http://hits.dwyl.io/srbcheema1/code_tester.svg)](http://hits.dwyl.io/srbcheema1/code_tester)
        
        Code_tester is a command-line code testing tool used to test your codes against codes of your friends/brute-force code.
        
        
        ### Installation
        
        #### Build from Source
        
        - `git clone https://github.com/srbcheema1/code_tester`
        - `cd code_tester`
        - `sudo python3 setup.py install`
        
        #### Install using pip
        
        ##### linux and mac users
        ```
        sudo python3 -m pip install code_tester
        ```
        you may use `--user` option to install locally for user only in `~/.local/bin`
        don't forget `~/.local/bin` should be in your `PATH`. Add line `export PATH=$PATH="~/.local/bin"` in your `.bashrc`
        
        ##### windows users
        for windows users you should have python3 installed in your system
        ```
        pip install code_tester
        ```
        ### Usage
        
        ```
        srb@srb-pc:$ code_tester --help
        usage: code_tester [-h] [-f FILE] [-o OTHER] [-t TEST] [-i ID] [-n NUM]
                           [-s SEC] [-c]
                           [legacy [legacy ...]]
        
        positional arguments:
          legacy                legacy way of args
        
        optional arguments:
          -h, --help            show this help message and exit
          -f FILE, --file FILE  Input file name, ex: one.cpp
          -o OTHER, --other OTHER
                                Other input file name, ex: brute.cpp
          -t TEST, --test TEST  Test generator, ex: testgen.py
          -i ID, --id ID        Unique_id, ex: 111
          -n NUM, --num NUM     Maximum number of test cases, ex: 1000
          -s SEC, --sec SEC     Maximum time in seconds for a test file, ex: 4
          -c, --clean           Clean the files generated by tester
        
        
        
        srb@srb-pc:$ code_tester -f one.cpp -o brute_one.cpp -t testgen.py -n 500
        tested 100
        tested 200
        tested 300
        tested 400
        tested 500
        passed 500 testcases
        
        srb@srb-pc:$ code_tester wrong.cpp brute.cpp testgen.py
        
        ---------Failed Test Case----------
        10 19 10
        1 0 1 0 1 0 0 0 1 1
        ??!?!!!???!?!!!??!!
        
        ---------End of Test Case----------
        +-----------+-----------+
        | wrong.cpp | brute.cpp |
        +-----------+-----------+
        | 2         | 2         |
        | 2         | 2         |
        | 1         | 2         |
        | 2         | 3         |
        | 2         | 3         |
        | 2         | 3         |
        | 3         | 3         |
        | 2         | 3         |
        | 2         | 3         |
        +-----------+-----------+
        
        
        ```
        
        
        ### Supported Languages
        
        - c++
        - c
        - python3
        - java
        - ruby
        
        
        ### Contact / Social Media
        
        [![Github](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/github.png)](https://github.com/srbcheema1/)
        [![LinkedIn](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/linkedin-48x48.png)](https://www.linkedin.com/in/srbcheema1/)
        [![Facebook](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/fb.png)](https://www.facebook.com/srbcheema/)
        
        
        ### Development by
        
        Developer / Author: [Srb Cheema](https://github.com/srbcheema1/)
        
Platform: UNKNOWN
Classifier: Operating System :: POSIX :: Linux
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Description-Content-Type: text/markdown
