From d367ac0c4b2b79c764ff36404ecebec41f953a11 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 26 Nov 2023 17:51:26 +0100 Subject: [PATCH] Added new test to run all examples --- test/test_examples.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test_examples.py diff --git a/test/test_examples.py b/test/test_examples.py new file mode 100644 index 0000000..1c1963e --- /dev/null +++ b/test/test_examples.py @@ -0,0 +1,13 @@ +import pytest + +from fancy_gym.examples.example_replanning_envs import main as replanning_envs_main +from fancy_gym.examples.examples_dmc import main as dmc_main +from fancy_gym.examples.examples_general import main as general_main +from fancy_gym.examples.examples_metaworld import main as metaworld_main +from fancy_gym.examples.examples_movement_primitives import main as mp_main +from fancy_gym.examples.examples_open_ai import main as open_ai_main + +@pytest.mark.parametrize('entry', [replanning_envs_main, dmc_main, general_main, metaworld_main, mp_main, open_ai_main]) +@pytest.mark.parametrize('render', [False]) +def test_run_example(entry, render): + entry(render=render)