I've created an issue to track the test refactorings: https://github.com/rust-lang/chalk/issues/224
@nikomatsakis Types like
query::LoweringDatabase are used by both
chalki and the tests, would it make sense to move these out to a new crate ("chalk-model"?), or would that be too much splitting?
Mmm, I guess I could go either way. I think you could have a
chalk-integration crate that has a bunch of
#[test] tests, and a chalki uses that .. but I also think it'd be ok to pull the tests out into their own crates
There were some problems with circular dependencies, so I ended up creating a
chalk-integration crate, and
wf.rs fit there better as well
chalk-tests depends on
chalk-integration, which depends on
chalk-solve (which is the root crate)... So now the tests can't be moved to a
/tests directory, since it'd be a dependency cycle then
I think you can use a dev-dependency for this
but maybe I am wrong?