Skip to content

Commit ac12b54

Browse files
committed
feat: Organize test files into unit and integration directories
Moved test files from the `tests/` directory into `tests/unit/` and `tests/integration/` subdirectories for better organization and clarity. - `tests/extractor_unit_tests.rs` -> `tests/unit/extractor_unit_tests.rs` - `tests/game_unit_tests.rs` -> `tests/unit/game_unit_tests.rs` - `tests/ascii_art_coverage_tests.rs` -> `tests/integration/ascii_art_coverage_tests.rs` - `tests/comment_processing_tests.rs` -> `tests/integration/comment_processing_tests.rs` - `tests/indent_treesitter_tests.rs` -> `tests/integration/indent_treesitter_tests.rs` - `tests/missing_ascii_art_test.rs` -> `tests/integration/missing_ascii_art_test.rs` Updated `tests/mod.rs`, `tests/unit/mod.rs`, and `tests/integration/mod.rs` to reflect the new module structure.
1 parent d10fbd4 commit ac12b54

File tree

9 files changed

+7
-11
lines changed

9 files changed

+7
-11
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/integration/mod.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
pub mod languages;
2-
pub mod multibyte_typing_core;
3-
4-
use gittype::extractor::ExtractionOptions;
5-
6-
pub fn test_extraction_options() -> ExtractionOptions {
7-
let mut options = ExtractionOptions::default();
8-
// Remove tmp/** pattern for tests since we're using temp directories
9-
options.exclude_patterns.retain(|p| p != "**/tmp/**");
10-
options
11-
}
1+
pub mod ascii_art_coverage_tests;
2+
pub mod comment_processing_tests;
3+
pub mod indent_treesitter_tests;
4+
pub mod missing_ascii_art_test;

tests/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pub mod integration;
2+
pub mod unit;

tests/unit/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod extractor_unit_tests;
2+
pub mod game_unit_tests;

0 commit comments

Comments
 (0)