Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.06 KB

File metadata and controls

30 lines (21 loc) · 1.06 KB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

Run all tests:

bash test/test_modified_branch_files_test.sh
bash test/open_coverage_test.sh

Run coverage:

bashcov test/test_modified_branch_files_test.sh && bashcov test/open_coverage_test.sh

Enter dev environment with all dependencies (shunit2, bashcov, elixir):

nix develop

Architecture

This repository contains bash scripts that help with Elixir testing workflows:

  • test_modified_branch_files - Identifies modified .ex/.exs files in the current branch (compared to base branch) and runs corresponding tests. Transforms lib/ paths to test/ paths with _test.exs suffix.
  • open_coverage - Opens Elixir coverage HTML files. Accepts file paths or module names, handles both implementation and test files/modules.

Tests are written using shUnit2 (xUnit based unit testing framework for shell scripts). Coverage uses bashcov.