-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(test): add test command to e2e test the review command #24
Conversation
LOGAF Level 3 - /home/runner/work/code-review-gpt/code-review-gpt/src/review/prompt/constructPrompt.ts Consider using a more efficient algorithm for splitting files into batches. The current implementation has a time complexity of O(n^2), which could be improved to O(n) by keeping track of the current batch size. LOGAF Level 3 - /home/runner/work/code-review-gpt/code-review-gpt/src/test/run/generateTestReport.ts
function formatTestReport(result: testResult, message: string) {
switch (result) {
case testResult.PASS:
return chalk.green(message);
case testResult.WARN:
return chalk.yellow(message);
case testResult.FAIL:
return chalk.red(message);
}
}
const counts = Object.values(testResults).reduce((counts, result) => {
counts[result]++;
return counts;
}, { PASS: 0, WARN: 0, FAIL: 0 }); LOGAF Level 3 - /home/runner/work/code-review-gpt/code-review-gpt/src/test/load/loadTestCodeSnippets.ts Consider handling errors when generating code snippets. Currently, if there is an error when generating a code snippet, the entire process will fail. It would be better to catch the error, log it, and continue with the remaining test cases. 🔄🧹🔍 Powered by Code Review GPT |
3640de3
to
4233618
Compare
4392d66
to
ee5b71b
Compare
17d3c3f
to
6a996b3
Compare
5f394e3
to
7c1b09d
Compare
dd4b521
to
f53b2df
Compare
Test results summary:[PASS] - Test case: Bad variable name SUMMARY: ✅ PASS: 4, Tests Powered by Code Review GPT |
d921ff5
to
25eba3f
Compare
25eba3f
to
f4512ac
Compare
WTF ?! that is a fantastic feature ! This is a killer feature !!!! |
Fixes #19
Behaviour of this feature:
test
running test