Tracking issue: #391 — Improve test coverage significantly (staged plan).
Scope
Create a top-level tests/ directory for end-to-end integration tests. This is the largest structural coverage gap: the crate currently has zero integration tests (all 311 existing tests are inline unit tests). Cargo.toml already excludes tests/ from the published package, so this is safe.
Tasks
Verification
cargo test --all-features (integration tests run as part of the suite)
cargo fmt --all -- --check
cargo clippy --all-features -- -Drust-2018-idioms -Dwarnings
Do you want to work on this issue?
yes — PR will target development.
Tracking issue: #391 — Improve test coverage significantly (staged plan).
Scope
Create a top-level
tests/directory for end-to-end integration tests. This is the largest structural coverage gap: the crate currently has zero integration tests (all 311 existing tests are inline unit tests).Cargo.tomlalready excludestests/from the published package, so this is safe.Tasks
tests/directory at repo root.tests/linear_workflow.rs—LinearRegression/LogisticRegression/RidgeRegressionend-to-end.tests/tree_workflow.rs—DecisionTreeClassifier/DecisionTreeRegressor.tests/ensemble_workflow.rs—RandomForestClassifier/RandomForestRegressor.tests/svm_workflow.rs—SVC/SVRwith at least two kernels.tests/naive_bayes_workflow.rs— all four NB variants.tests/neighbors_workflow.rs—KNNClassifier/KNNRegressor.tests/cluster_workflow.rs—DBSCAN/KMeans.tests/decomposition_workflow.rs—PCA/SVDfit → transform → reconstruct.tests/preprocessing_workflow.rs—OneHotEncoder+StandardScalerin a pipeline.tests/model_selection_workflow.rs—train_test_split→ fit →cross_validate→ score.#[cfg(feature = "datasets")]; provide tiny inline fixtures for the no-feature path where possible.Verification
cargo test --all-features(integration tests run as part of the suite)cargo fmt --all -- --checkcargo clippy --all-features -- -Drust-2018-idioms -DwarningsDo you want to work on this issue?
yes — PR will target
development.