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

    cov = coverage.coverage()
    cov.start()
    testModule.main()
    #music21.mainTest(bar.Test)
    cov.stop()
    cov.html_report(directory='/Users/cuthbert/web/music21/coverage/')
Example #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 test

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

#------------------------------------------------------------------------------
# eof
Example #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:      LGPL, see license.txt
#-------------------------------------------------------------------------------

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




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

Example #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:    (c) 2009-2010 The music21 Project
# License:      LGPL
#-------------------------------------------------------------------------------

import sys
from music21.test import test


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

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



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

Example #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, see license.txt
#-------------------------------------------------------------------------------

import sys
from music21.test import test


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

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



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