Skip to content

alirezazahiri/testipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Started


Insert C++ or C Codes

  • you can easily add c++ or c files in /inputs directory

there is no need to add .exe files in this directory, files are finally getting filtered by .cpp extension while program is on!


Add Test Code

  • for testing purposes there is a I/O returning function provided in io_tst.py

    def main_code(test_index: int=0):
        """ RETURN THE I/O THAT IS COMPATIBLE WITH YOUR TEST """
    
        i = f"" # some input
        o = f"" # some output
    
        return i, o

test_index is the index of the test that is running currently

  • useful for I/O preserved tests


Run Test Samples

  • after inserting c++ (or C) codes, and adding the test code in specified directories, it is time to run combo.py
  • linux & mac
    python3 combo.py
  • windows py combo.py

Check Coverages

  • finally you can get a brief coverage report of each code, inside statistics.csv

See Also

HAVING ISSUES WITH YOUR SAMPLE TEST ?

don't panic, you can use dev.py to see your generated I/O and check wether it's correct or not !

you can also see your messages above all! (useful for debugging your test sample!) 💎

About

A small automated test structure using python to test *.c/cpp codes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages