Skip to content

Commit

Permalink
snippet comparision script now downloads test assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 11, 2024
1 parent 05b0c38 commit 75ec2ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/snippets/compare_snippet_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ def main() -> None:

print("----------------------------------------------------------")

print("Downloading test assets…")
run(["pixi", "run", "python", "./tests/assets/download_test_assets.py"])
print("")

print("----------------------------------------------------------")

active_languages = ["rust"]
if not args.no_cpp:
active_languages.append("cpp")
Expand Down
1 change: 1 addition & 0 deletions docs/snippets/snippets.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ quick_start = [ # These examples don't have exactly the same implementation.


# `$config_dir` will be replaced with the absolute path of `docs/snippets`.
# Note that the snippet comparison tool will automatically run `/tests/assets/download_test_assets.py` before running the snippets.
[extra_args]
"archetypes/asset3d_simple" = ["$config_dir/../../tests/assets/cube.glb"]
"archetypes/asset3d_out_of_tree" = ["$config_dir/../../tests/assets/cube.glb"]
Expand Down

0 comments on commit 75ec2ea

Please sign in to comment.