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