Automated Unit Testing #125
Replies: 4 comments 2 replies
-
We will need this eventually so the swarm can test itself and integrate. Maybe most useful over in the tools discussion |
Beta Was this translation helpful? Give feedback.
-
I agree, was thinking about this yesterday. I approved a PR which broke code due to hard coded string paths "my code oops" and someone had done the repo restructure. Having tests to make sure functionality like that doesn't break will be key moving on from here |
Beta Was this translation helpful? Give feedback.
-
My proposal for the first test is to verify that each agent in agents follows a certain folder structure that is defined. An example would be:
If a pull request fails this test it should be not able to be merged while the test failes. |
Beta Was this translation helpful? Give feedback.
-
@RomanGoEmpire, @OWigginsHay I'm going to take a look this weekend |
Beta Was this translation helpful? Give feedback.
-
Hi all,
As this repository grows, I expect that automated testing would be useful to ensure changes are fit for purpose and don't break existing work. This should also make the PR process easier.
I was thinking of implementing a mock API agent (which could be selected with some debug OpenAI API key) so that we can unit test large parts of the repository without incurring the associated API costs 💵.
Is there an appetite for this yet? If so, do people have any preferences regarding testing frameworks: pytest, unittest?
Related discussions (but pertaining more so to integration testing): The cost of tokens
Beta Was this translation helpful? Give feedback.
All reactions