Skip to content

Conversation

@khvn26
Copy link
Member

@khvn26 khvn26 commented Jul 16, 2025

Contributes to Flagsmith/flagsmith-engine#219.

Closes #11.

In this PR, we:

  • Reimplement test data in form of individual test case files containing EvaluationContext/EvaluationResult pair.
  • Add a test case for Context values.
  • Update README.

I've decided to use a JSONSchema spec for the test case data so it's self-documented and easily consumed.

We should release v2.0.0 once this is merged.

khvn26 added a commit to Flagsmith/flagsmith-nodejs-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-php-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-elixir-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-rust-flag-engine that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-go-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-dotnet-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-java-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-ruby-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-go-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-ruby-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-nodejs-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-php-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-elixir-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-rust-flag-engine that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-dotnet-client that referenced this pull request Jul 21, 2025
khvn26 added a commit to Flagsmith/flagsmith-java-client that referenced this pull request Jul 21, 2025
@emyller
Copy link
Contributor

emyller commented Sep 17, 2025

@khvn26 Should I pick this PR up in light of #11?

@khvn26 khvn26 requested a review from a team as a code owner October 2, 2025 15:23
@khvn26 khvn26 requested review from emyller and removed request for a team October 2, 2025 15:23
Copy link
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

Yet to dig into the details of the tests but out of my mind I have 3 comments:

  • Can we come up with human filenames ? To avoid redundancy because of not getting where to look at
  • I see here the common usage anticipated, would it be worth to have a pre.commit script that aggregates the test into one index.json ?
  • And a mix of my 2 above comments, keep the files separately accessibles but with an understandable name (cf here)

Copy link
Contributor

@emyller emyller left a comment

Choose a reason for hiding this comment

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

I mostly agree with @Zaimwa9, and honestly don't see actual improvements to existing test data.

That said, I'm approving because improving names might be out of scope here. This work should already unblock moving forward with adding new test cases.

@khvn26
Copy link
Member Author

khvn26 commented Oct 3, 2025

Can we come up with human filenames ? To avoid redundancy because of not getting where to look at

honestly don't see actual improvements to existing test data.

Created #17 to address this. I agree with @emyller that further modifications should be out of scope of this PR; here, we solve transforming existing test data, and adding one test case for context values.

@khvn26 khvn26 merged commit 5b776b7 into main Oct 3, 2025
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.

Reimplement test data in form of evaluationContext: expectedEvaluationResult

4 participants