Пример #1
0
def runCoverage(show=True):
    if coverage is None:
        raise music21.Music21Exception("Cannot run test.testCoverage unless the coverage Python library is installed; sudo easy_install coverage")
    
    cov = coverage.coverage()
    cov.start()
    testModule.main()
    #music21.mainTest(bar.Test)
    cov.stop()
    cov.html_report(directory='/Users/cuthbert/web/music21/coverage/')
Пример #2
0
def runCoverage(show=True):
    if coverage is None:
        raise music21.Music21Exception(
            "Cannot run test.testCoverage unless the coverage Python library is installed; sudo easy_install coverage"
        )

    cov = coverage.coverage()
    cov.start()
    testModule.main()
    #music21.mainTest(bar.Test)
    cov.stop()
    cov.html_report(directory='/Users/cuthbert/web/music21/coverage/')
Пример #3
0
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name:         testExternal.py
# Purpose:      Controller for all tests employing external software and
#               human-confirmation. Uses TestExternal classes in modules.
#
# Authors:      Christopher Ariza
#               Michael Scott Cuthbert
#
# Copyright:    Copyright © 2009 Michael Scott Cuthbert and the music21 Project
# License:      LGPL or BSD, see license.txt
#-------------------------------------------------------------------------------

from music21.test import testSingleCoreAll as test

#-------------------------------------------------------------------------------
if __name__ == '__main__':
    test.main('external')




#------------------------------------------------------------------------------
# eof

Пример #4
0
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name:         testExternal.py
# Purpose:      Controller for all tests employing external software and
#               human-confirmation. Uses TestExternal classes in modules.
#
# Authors:      Christopher Ariza
#               Michael Scott Cuthbert
#
# Copyright:    Copyright © 2009 Michael Scott Cuthbert and the music21 Project
# License:      BSD, see license.txt
# ------------------------------------------------------------------------------

from music21.test import testSingleCoreAll as test

# ------------------------------------------------------------------------------
if __name__ == '__main__':
    test.main('external')

# -----------------------------------------------------------------------------
# eof
Пример #5
0
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name:         testDefault.py
# Purpose:      Controller for all tests in music21 in the default Environment.
#
# Authors:      Christopher Ariza
#               Michael Scott Cuthbert
#
# Copyright:    Copyright © 2010 Michael Scott Cuthbert and the music21 Project
# License:      BSD, see license.txt
# ------------------------------------------------------------------------------

import sys
from music21.test import testSingleCoreAll as test

# ------------------------------------------------------------------------------
if __name__ == '__main__':

    if len(sys.argv) >= 2:
        test.main(sys.argv[1:], restoreEnvironmentDefaults=True)
    else:
        test.main(restoreEnvironmentDefaults=True)


Пример #6
0
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name:         testDefault.py
# Purpose:      Controller for all tests in music21 in the default Environment.
#
# Authors:      Christopher Ariza
#               Michael Scott Cuthbert
#
# Copyright:    Copyright © 2010 Michael Scott Cuthbert and the music21 Project
# License:      LGPL or BSD, see license.txt
# -------------------------------------------------------------------------------

import sys
from music21.test import testSingleCoreAll as test

# -------------------------------------------------------------------------------
if __name__ == "__main__":

    if len(sys.argv) >= 2:
        test.main(sys.argv[1:], restoreEnvironmentDefaults=True)
    else:
        test.main(restoreEnvironmentDefaults=True)


# ------------------------------------------------------------------------------
# eof