Skip to content

Commit a32bc53

Browse files
authored
Show all tags in tests (#88)
1 parent 55d371c commit a32bc53

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cwltest/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import tempfile
1010
import threading
1111
import time
12-
from typing import Any, Dict, List, Optional, Text, Union
12+
from typing import Any, Dict, List, Optional, Set, Text, Union
1313
from concurrent.futures import ThreadPoolExecutor
1414
from collections import defaultdict
1515
from rdflib import Graph
@@ -280,6 +280,7 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
280280
"--only-tools", action="store_true", help="Only test CommandLineTools"
281281
)
282282
parser.add_argument("--tags", type=str, default=None, help="Tags to be tested")
283+
parser.add_argument("--show-tags", action="store_true", help="Show all Tags.")
283284
parser.add_argument(
284285
"--junit-xml", type=str, default=None, help="Path to JUnit xml file"
285286
)
@@ -406,6 +407,15 @@ def main(): # type: () -> int
406407
if t.get("label"):
407408
t["short_name"] = t["label"]
408409

410+
if args.show_tags:
411+
alltags = set() # type: Set[str]
412+
for t in tests:
413+
ts = t.get("tags", [])
414+
alltags |= set(ts)
415+
for tag in alltags:
416+
print(tag)
417+
return 0
418+
409419
if args.l:
410420
for i, t in enumerate(tests):
411421
if t.get("short_name"):

0 commit comments

Comments
 (0)