SSTTestCase is run twice in python unittest testsuite?
It seems that SSTTestCase is executed twice when it's added in unittest testsuite.
I have a test:
from sst.actions import go_to, assert_
from sst import cases
class TestUbuntu(
def test_homepages(
go_to('http://
Which is added to following suite (testscenarios is used for multiple browser support in case of other browsers than Firefox):
import unittest
import xmlrunner
import testtools
from testscenarios import generate_scenarios
from sst import cases
from test_ubuntu import TestUbuntu
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
suite = unittest.
runner = xmlrunner.
mytests = unittest.
mytests.
for test in testtools.
suite.addTests(
runner.run(suite)
When the suite is being executed (python suite.py) the test is run twice. If I don't add the test to mytests, the test is executed once, but XML test result report is not being produced.
Is this a bug or feature? Should I be executing SSTTestCases only via SST-run?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Ari
- Solved:
- Last query:
- Last reply: