guidance-ai / guidance

A guidance language for controlling large language models.
MIT License
18.13k stars 1.01k forks source link

[Test] Test reorganisation #898

Closed riedgar-ms closed 2 weeks ago

riedgar-ms commented 3 weeks ago

Start reorganising the tests into more directories. The major divisions introduced are:

The workflows have been updated to match.

riedgar-ms commented 3 weeks ago

This is just a beginning; I've not started redoing the workflow files yet.

riedgar-ms commented 3 weeks ago

Also note that some files (e.g. test_model.py and test_grammar.py have been split into two between unit and model_integration according to whether each test needs a real model or not.

hudson-ai commented 2 weeks ago

@riedgar-ms thanks for the work on this. I think the logical separation between types of tests makes sense, and upon thinking about it a bit more, I totally agree with the decision to use folders rather than pytest.mark. And I'm digging the fast unit tests :)