Skip to content

test: strengthen assertions to kill surviving mutants - #46

Merged
zurfjereluhmie merged 1 commit into
mainfrom
test/kill-surviving-mutants
May 4, 2026
Merged

test: strengthen assertions to kill surviving mutants#46
zurfjereluhmie merged 1 commit into
mainfrom
test/kill-surviving-mutants

Conversation

@zurfjereluhmie

Copy link
Copy Markdown
Owner

Summary

  • Add dataframe=, input_keys=, output_keys=, delete URL, and headers= kwarg assertions across all three on_exist modes in uploader tests; restore missing TestUploadOverwrite and TestUploadAppend classes
  • Assert get_dataset is called with the correct experiment name (not None) in runner tests; add test exercising the non-directory skip path in _discover to catch continue→break mutations
  • Add evaluator edge-case tests: json_match invalid/non-object expected, numeric_tolerance default boundary values, top_k K=20 window, membership None output, llm_judge missing result key and invalid schema arg
  • Add observability tests for None/empty instrumentors and default auto_instrument=True
  • Add helpers tests for scalar wrapping and missing-key default

- Add dataframe= kwarg assertions to create_dataset and
  add_examples_to_dataset calls across skip, overwrite, and append modes
- Restore TestUploadOverwrite and TestUploadAppend classes with full
  arg-checking including delete URL and headers={'accept': 'application/json'}
- Assert get_dataset is called with the correct dataset name in runner
- Add test for files in experiments_dir to exercise the non-directory
  skip path (catches continue->break mutation)
- Add edge-case evaluator tests: json_match invalid/non-object expected,
  numeric_tolerance default boundary, top_k K=20 window, membership None,
  llm_judge missing result key and schema arg
- Add observability tests: instrument not called on None/empty, default
  auto_instrument=True
- Add helpers tests: scalar wrapping and missing-key default
@zurfjereluhmie
zurfjereluhmie merged commit ea6d201 into main May 4, 2026
9 checks passed
@zurfjereluhmie
zurfjereluhmie deleted the test/kill-surviving-mutants branch May 4, 2026 20:03
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.

1 participant