Skip to content

test: add tests for thinking#9

Merged
kujtimiihoxha merged 6 commits intomainfrom
thinking-tests
Sep 18, 2025
Merged

test: add tests for thinking#9
kujtimiihoxha merged 6 commits intomainfrom
thinking-tests

Conversation

@andreynering
Copy link
Copy Markdown
Member

@andreynering andreynering commented Sep 9, 2025

(just testing gh connection for DevStride)

@andreynering andreynering self-assigned this Sep 9, 2025
@andreynering andreynering force-pushed the charm-599-gemini-initial-implementation branch 3 times, most recently from 286478a to c69bc6b Compare September 16, 2025 13:16
Base automatically changed from charm-599-gemini-initial-implementation to main September 16, 2025 13:19
- add chrush.md
- add check to google provider
- make all tests use testify
@kujtimiihoxha kujtimiihoxha changed the title WIP test: add tests for thinking test: add tests for thinking Sep 17, 2025
@kujtimiihoxha kujtimiihoxha marked this pull request as ready for review September 17, 2025 11:02
Comment thread providertests/provider_test.go Outdated
}
}

func testThinkingSteps(t *testing.T, providerName string, steps []ai.StepResult) {
Copy link
Copy Markdown
Member Author

@andreynering andreynering Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 simple suggestions for a cleaner test code here.

  1. Create a thinking_test.go file to hold these thinking helpers.
  2. Have separate functions for provider: testThinkingAnthropic, testThinkingOpenAi, etc.
  3. On the main func, use a switch instead of multiple if/else:
func testThinkingSteps(t *testing.T, providerName string, steps []ai.StepResult) {
  switch providerName {
  case anthropic.Name:
    testThinkingStepsAnthropic(t, providerName, steps)
  case openai.Name:
    testThinkingStepsOpenAi(t, providerName, steps)
  default:
    // ???
  }
}

@kujtimiihoxha
Copy link
Copy Markdown
Contributor

Will merge this in and add tests as we go

@kujtimiihoxha kujtimiihoxha merged commit 5623663 into main Sep 18, 2025
16 checks passed
@kujtimiihoxha kujtimiihoxha deleted the thinking-tests branch September 18, 2025 10:16
hugodutka pushed a commit to hugodutka/fantasy that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants