Skip to content

Commit

Permalink
group tests by when they were updated for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 17, 2024
1 parent 8b416c3 commit 24c57af
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ setup = "pre-commit install"
code-quality = "pre-commit run --all-files"
unit-tests = "python -m pytest {args:tests/unit}"
integration-tests = [
'- python -m pytest {args:tests/functional} -m "group_1"',
'- python -m pytest {args:tests/functional} -m "group_4"',
'- python -m pytest {args:tests/functional} -m "group_5"',
'- python -m pytest {args:tests/functional} -m "group_6"',
'- python -m pytest {args:tests/functional} -m "last_year"',
'- python -m pytest {args:tests/functional} -m "last_quarter"',
'- python -m pytest {args:tests/functional} -m "last_month"',
'- python -m pytest {args:tests/functional} -m "microbatch"',
]
docker-dev = [
"docker build -f docker/dev.Dockerfile -t dbt-snowflake-dev .",
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ filterwarnings = [
"ignore:datetime.datetime.utcnow:DeprecationWarning",
]
markers = [
"group_1",
"group_4",
"group_5",
"group_6",
"last_year",
"last_quarter",
"last_month",
"microbatch",
]
82 changes: 41 additions & 41 deletions tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,47 @@


TEST_GROUPS = {
"catalog_tests": "group_1",
"column_types": "group_1",
"custom_schema_tests": "group_1",
"dbt_clone": "group_1",
"dbt_show": "group_1",
"empty": "group_1",
"incremental": "group_6",
"list_relations_tests": "group_6",
"python_model_tests": "group_1",
"query_comment_tests": "group_1",
"simple_copy": "group_1",
"simple_seed": "group_1",
"statement_test": "group_1",
"store_test_failures_tests": "group_1",
"unit_testing": "group_1",
"utils": "group_1",
"test_aliases.py": "group_1",
"test_anonymous_usage_stats.py": "group_1",
"test_basic.py": "group_1",
"test_caching.py": "group_4",
"test_changing_relation_type.py": "group_4",
"test_concurrency.py": "group_4",
"test_constraints.py": "group_4",
"test_ephemeral.py": "group_4",
"test_get_last_relation_modified.py": "group_4",
"test_grants.py": "group_1",
"test_incremental_microbatch.py": "group_5",
"test_persist_docs.py": "group_1",
"test_python_model.py": "group_5",
"test_simple_snapshot.py": "group_5",
"test_timestamps.py": "group_1",
"auth_tests": "group_1",
"generic_test_tests": "group_1",
"iceberg": "group_1",
"override_database": "group_1",
"query_tag": "group_1",
"redact_log_values": "group_1",
"relation_tests": "group_6",
"snowflake_view_dependency": "group_1",
"warehouse_test": "group_1",
"test_isolated_begin_commit.py": "group_1",
"catalog_tests": "last_year",
"column_types": "last_year",
"custom_schema_tests": "last_year",
"dbt_clone": "last_quarter",
"dbt_show": "last_quarter",
"empty": "last_quarter",
"incremental": "microbatch",
"list_relations_tests": "last_month",
"python_model_tests": "last_year",
"query_comment_tests": "last_year",
"simple_copy": "last_year",
"simple_seed": "last_year",
"statement_test": "last_year",
"store_test_failures_tests": "last_year",
"unit_testing": "last_year",
"utils": "last_year",
"test_aliases.py": "last_year",
"test_anonymous_usage_stats.py": "last_year",
"test_basic.py": "last_year",
"test_caching.py": "last_year",
"test_changing_relation_type.py": "last_year",
"test_concurrency.py": "last_year",
"test_constraints.py": "last_year",
"test_ephemeral.py": "last_year",
"test_get_last_relation_modified.py": "last_year",
"test_grants.py": "last_year",
"test_incremental_microbatch.py": "microbatch",
"test_persist_docs.py": "last_year",
"test_python_model.py": "last_year",
"test_simple_snapshot.py": "last_year",
"test_timestamps.py": "last_year",
"auth_tests": "last_month",
"generic_test_tests": "last_month",
"iceberg": "last_month",
"override_database": "last_year",
"query_tag": "last_month",
"redact_log_values": "last_year",
"relation_tests": "last_month",
"snowflake_view_dependency": "last_year",
"warehouse_test": "last_quarter",
"test_isolated_begin_commit.py": "last_year",
}


Expand Down

0 comments on commit 24c57af

Please sign in to comment.