fix(unittest): handle extra args
This commit is contained in:
@@ -92,7 +92,7 @@ class UnittestNeotestAdapter(NeotestAdapter):
|
|||||||
# Make sure we can import relative to current path
|
# Make sure we can import relative to current path
|
||||||
sys.path.insert(0, os.getcwd())
|
sys.path.insert(0, os.getcwd())
|
||||||
# We only get a single case ID as the argument
|
# We only get a single case ID as the argument
|
||||||
argv = sys.argv[0:1] + self.id_to_unittest_args(args[0])
|
argv = sys.argv[0:1] + self.id_to_unittest_args(args[-1])
|
||||||
unittest.main(
|
unittest.main(
|
||||||
module=None,
|
module=None,
|
||||||
argv=argv,
|
argv=argv,
|
||||||
|
Reference in New Issue
Block a user