Skip to content

Batch testing and similarity checking of python code

License

Notifications You must be signed in to change notification settings

ddempsey/unicity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unicity

I wrote this library to test and debug code from hundreds of Python files submitted by my programming class. It can also be used to find code submissions that are suspiciously similar (Python and MATLAB).

To get started, install unicity using pip.

pip install unicity

Then, download the and run the scripts in the example folder above. Or if you prefer a tutorial, see here.

Some disclaimers:

  • I have discovered that when students are learning to code, they are very innovative in the ways they will find to break your workflow. So far, I have built support to catch and handle directory changes, infinite loops, and widespread typos, but I'm sure there are more surprises out there! You can catch and handle these yourself in the way you define a test function, but I'd also like to hear if you think something should be added to make unicity testing more robust.

  • Similarity checking should be treated as a screening tool to highlight potential instances of copying. It does not (it cannot) assert that copying has in fact occurred. The best way to do that is by a follow up interview.

More documentation at readthedocs.

About

Batch testing and similarity checking of python code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages