Separate tests into unittests and integrationtests
parent
949c3f91f4
commit
39d0451143
|
@ -16,7 +16,7 @@ install:
|
|||
# command to run tests
|
||||
script:
|
||||
- pep8 mycroft test
|
||||
- nose2 test --with-coverage --config=test/unittest.cfg
|
||||
- nose2 -t ./ -s test/unittests/ --with-coverage --config=test/unittests/unittest.cfg
|
||||
env:
|
||||
- IS_TRAVIS=true
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import os
|
||||
import glob
|
||||
import unittest
|
||||
from test.skills.skill_tester import MockSkillsLoader, SkillTest
|
||||
from test.integrationtests.skills.skill_tester import MockSkillsLoader
|
||||
from test.integrationtests.skills.skill_tester import SkillTest
|
||||
|
||||
__author__ = 'seanfitz'
|
||||
|
|
@ -66,7 +66,8 @@ class AudioConsumerTest(unittest.TestCase):
|
|||
def __create_sample_from_test_file(self, sample_name):
|
||||
root_dir = dirname(dirname(dirname(__file__)))
|
||||
filename = join(
|
||||
root_dir, 'test', 'client', 'data', sample_name + '.wav')
|
||||
root_dir, 'unittests', 'client',
|
||||
'data', sample_name + '.wav')
|
||||
wavfile = WavFile(filename)
|
||||
with wavfile as source:
|
||||
return AudioData(
|
Loading…
Reference in New Issue