Spaces Data

Minimal test - lines (54, 67)

path: .spaces[1].metrics.loc.cloc
old: 3.0
new: 4.0

path: .spaces[1].metrics.loc.sloc
old: 12.0
new: 14.0

path: .spaces[1].metrics.loc.blank
old: 1.0
new: 2.0

path: .spaces[1].metrics.mi.mi_sei
old: 114.2488634499235
new: 112.50638028324006

path: .spaces[1].metrics.mi.mi_visual_studio
old: 62.73779800523992
new: 61.27742314371852

path: .spaces[1].metrics.mi.mi_original
old: 107.28163458896026
new: 104.78439357575868

Code

def smoke_test():
    # first, let's make sure it catches crashes so we don't have false
    # positives.
    try:
        run_jsshell("-e 'crash();'", "Testing for crash\n")
    except subprocess.CalledProcessError:
        pass
    else:
        raise Exception("Could not get the process to crash")

    # now let's proceed with some tests
    run_jsshell("--fuzzing-safe -e 'print(\"PASSED\")'", "Simple Fuzzing...")

    # add more smoke tests here