Skip to main content

A command line tool for media editing

Project description

CODE_TESTER

contributions welcome Open Source Love HitCount

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 LinkedIn Facebook

Development by

Developer / Author: Srb Cheema

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_tester-0.0.2.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file code_tester-0.0.2.tar.gz.

File metadata

  • Download URL: code_tester-0.0.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for code_tester-0.0.2.tar.gz
Algorithm Hash digest
SHA256 aa80fcf967baa19f93a0b8edfebf9770fef73426e6728beebd6b042c0c07af4a
MD5 ede0e23863a935bef488da8bf95b9379
BLAKE2b-256 4b54aaaed56652ff4e6562633118fd2175d03f985eebdcc51cd8780d36a186a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page