mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
27 lines
662 B
Python
27 lines
662 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""
|
||
|
|
Returns a string of a list of basic test files (such as configuring the nodes) on which other more specialised tests depend on.
|
||
|
|
This string is picked up by a subprocess in test-cypress.sh
|
||
|
|
"""
|
||
|
|
|
||
|
|
import json
|
||
|
|
import click
|
||
|
|
import logging
|
||
|
|
|
||
|
|
logging.basicConfig(level=logging.INFO)
|
||
|
|
logger = logging.getLogger(__name__)
|
||
|
|
|
||
|
|
|
||
|
|
@click.command()
|
||
|
|
def execute():
|
||
|
|
with open("cypress_basics.json") as json_file:
|
||
|
|
data = json.load(json_file)
|
||
|
|
spec_run_list = []
|
||
|
|
for file in data["testFiles"]:
|
||
|
|
spec_run_list.append("./cypress/integration/" + file)
|
||
|
|
click.echo(",".join(spec_run_list))
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
execute()
|