Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruksi

Normal Usage

Untuk menjalankan program ini, pada main.py sudah disediakan contoh penggunaan. Untuk menjalankan program, cukup jalankan main.py dengan python3.6 atau lebih tinggi.

from UnitTest import UnitTest

# Membuat objek UnitTest
# Parameter 1: Nama folder yang akan dijadikan sebagai test-case
inputTest = []
outputTest = []

# Runs a unit test using the `UnitTest` class with specified input and output tests.
# 
# Parameters:
# - `folderName`: the name of the folder containing the test files
# - `input_test`: the input test file name
# - `output_test`: the output test file name
#
# Returns:
# - Check generated result.txt and result.csv
checker = UnitTest("folderName", input_test=inputTest, output_test=outputTest)
checker.run()

Input dan Output

Untuk bagian pengisian input dan output harap mengikuti ketentuan dibawah ini supaya file dapat dijalankan dengan baik.

# Input
# Karena keterbatasan cara input, maka input diisi dalam bentuk list, 
# dan tiap elemen list dipisahkan dengan spasi untuk per test-case
inputTest = ["1 2 3 4 5"]
inputTest = ["1 2 3 4 5", "6 7 8 9 10"]

# Output
# Pembacaan output oleh Popen.communicate() akan menghasilkan byte,
# maka dari itu output diisi dalam bentuk string, dan tanpa spasi
outputTest = ["15"]
outputTest = ["15", "40"]
outputTest = ["Contohoutput1", "Contohoutput2"]

Program dapat dikostumisasi dengan membuat single file checker atau folder-based

Things to add

  • Unit Test
  • Single File Checker
  • Folder-based Checker
  • Checking using regex
  • Auto degrade, ketika salah kode aslab
  • Auto 0, ketika terindikasi plagiarisme
  • Scrapping website untuk cek plagiarisme
  • GUI
  • Documentation
  • Checking using tolerance
  • Fix bug occurs when check plagiaisme about naming that doesn't match to plagiaism check

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages