Open sirkitree opened 1 month ago
from @lalalune
there are some, but they need a little love i had tests in the old version: https://github.com/jointhealliance/bgent https://github.com/JoinTheAlliance/bgent/tree/main/src/lib/__tests__ https://github.com/JoinTheAlliance/bgent/tree/main/src/lib/actions/__tests__ https://github.com/JoinTheAlliance/bgent/tree/main/src/lib/evaluators/__tests__ https://github.com/JoinTheAlliance/bgent/tree/main/src/lib/providers/__tests__ these are the old ones i moved most of these into tests if you wanna get the test automation working with a hello world test, i can assign this
After the above is merged, we need to quantify existing tests and decide which are still relevant.
I'll analyze the test files and describe their purposes. Here are the test suites found in the codebase:
core/src/test_resources/basic.test.ts
core/tests/memory.test.ts
core/tests/browser.test.ts
core/tests/token.test.ts
core/tests/goals.test.ts
and core/tests/goal.test.ts
core/tests/runtime.test.ts
core/tests/actions.test.ts
core/tests/continue.test.ts
core/tests/messages.test.ts
core/tests/evaluation.test.ts
The test suite uses Jest as the testing framework and includes features like:
Most tests include proper setup and teardown procedures to ensure a clean testing environment for each test case.
Now that we have a basic hello world type of test in place and running on ci, we can start lookin at these other ones. I'm going to split each one of these into their own task so they can be handled piece by piece and possibly spread out amongst the collective.
Tried out running the tests today (
npm run test
) and there are a lot of failures currently.We should
@lalalune could you advise here? I think we can work on the tests but the first task of identifying which ones are necessary would be great if you could help with that more quickly than others.