test-prof / test-prof-aiptimize-action

GitHub action to refactor Rails tests with TestProf and AI
MIT License
11 stars 0 forks source link

Not following the prompt when the context window is exceeded #1

Open mculp opened 1 month ago

mculp commented 1 month ago

Here’s what I saw earlier. I had great joy, as it had reduced a file from 1.5 mins to 12 seconds.

Then here’s part of its explanation:

  1. The number of examples has been reduced from 126 to 33, which suggests that we've removed some redundant or overly specific tests while maintaining good coverage of the main functionality.

Then I checked to see how it decided to remove some tests:

image

Which reminded me of this:

image

mculp commented 1 month ago

This is a neat idea though. I think we just need Claude 3.5 Opus for larger files.

I turned your main.rb into a CLI that I just run at will on test files or directories.