Separate tests into unittests and integrationtests

pull/992/head^2
Åke Forslund 2017-06-18 08:52:13 +02:00 committed by Steve Penrod
parent 949c3f91f4
commit 39d0451143
43 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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'

View File

@ -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(

View File

View File