Skip to content

Commit

Permalink
Merge pull request #2608 from IntersectMBO/optimize_parallel_test_exe…
Browse files Browse the repository at this point in the history
…cution

feat(tests): optimize parallel execution of tests
  • Loading branch information
mkoura committed Sep 6, 2024
2 parents 216a109 + ecde7e1 commit abd38f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cardano_node_tests/tests/test_pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,15 +624,14 @@ def _create_register_pool_tx_delegate_stake_tx(
return pool_creation_out


@pytest.mark.order(7)
@pytest.mark.testnets
@pytest.mark.long
@pytest.mark.dbsync
class TestStakePool:
"""General tests for stake pools."""

@allure.link(helpers.get_vcs_link())
@common.PARAM_USE_BUILD_CMD
@pytest.mark.smoke
def test_stake_pool_metadata(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down Expand Up @@ -703,6 +702,7 @@ def _query_func():

@allure.link(helpers.get_vcs_link())
@common.PARAM_USE_BUILD_CMD
@pytest.mark.smoke
def test_stake_pool_not_avail_metadata(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down Expand Up @@ -782,6 +782,7 @@ def _query_func():
@allure.link(helpers.get_vcs_link())
@common.PARAM_USE_BUILD_CMD
@pytest.mark.parametrize("no_of_addr", (1, 3))
@pytest.mark.smoke
def test_create_stake_pool(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down Expand Up @@ -1128,6 +1129,8 @@ def _deregister():
dbsync_utils.check_tx(cluster_obj=cluster, tx_raw_output=tx_raw_output)

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(7)
@pytest.mark.long
def test_cancel_stake_pool_deregistration(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down Expand Up @@ -1517,6 +1520,7 @@ def test_update_stake_pool_parameters(
)

@allure.link(helpers.get_vcs_link())
@pytest.mark.smoke
def test_sign_in_multiple_stages(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down Expand Up @@ -1652,6 +1656,8 @@ def _deregister():
dbsync_utils.check_tx(cluster_obj=cluster, tx_raw_output=tx_raw_output)

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(7)
@pytest.mark.long
def test_pool_registration_deregistration(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down
1 change: 1 addition & 0 deletions cardano_node_tests/tests/tests_conway/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class TestInfo:
GOV_ACTION_ANCHOR_FILE = DATA_DIR / "governance_action_anchor.json"

@allure.link(helpers.get_vcs_link())
@pytest.mark.long
@pytest.mark.dbsync
def test_info(
self,
Expand Down

0 comments on commit abd38f2

Please sign in to comment.