Skip to content

Commit

Permalink
#1431 always generate graphviz DAG file graphviz_output.gv when tests…
Browse files Browse the repository at this point in the history
… run
  • Loading branch information
chrisjsimpson committed Jan 12, 2025
1 parent 81d8f9c commit 7616d7d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tests/browser-automated-tests-playwright/run-playwright-tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from graphlib import TopologicalSorter
from graphviz import Digraph
import subprocess
from multiprocessing import Manager, Pool

Expand Down Expand Up @@ -89,16 +90,24 @@
"@1005_shop_owner_terms_and_conditions_creation",
"@stripe_connect",
],
"1431_shop_owner_bulk_pause_payment_collection_all_subscribers": [
"@293_subscriber_order_recurring_plan",
"@264_subscriber_order_plan_with_choice_options_and_required_note",
"@475_subscriber_order_plan_with_free_trial",
"@293-3_subscriber_order_plan_with_recurring_and_upfront_charge",
],
}

# Visualise DAG
# dot = Digraph()
# for node in graph:
# dot.node(str(node))
# for child in graph[node]:
# dot.edge(str(node), str(child))
dot = Digraph()
for node in graph:
dot.node(str(node))
for child in graph[node]:
dot.edge(str(node), str(child))

# Flick to True to open the graph in a viewer right away
dot.render("./graphviz_output.gv", view=False)

# dot.render("./graphviz_output.gv", view=True)

ts = TopologicalSorter(graph)

Expand Down

0 comments on commit 7616d7d

Please sign in to comment.