Skip to content

Add Testing chapter and rename chapter files to PascalCase - #8

Merged
dbrattli merged 1 commit into
mainfrom
add-testing-chapter
Dec 21, 2025
Merged

Add Testing chapter and rename chapter files to PascalCase#8
dbrattli merged 1 commit into
mainfrom
add-testing-chapter

Conversation

@dbrattli

Copy link
Copy Markdown
Contributor

Summary

  • Add new Testing chapter covering Fable.Python.Testing and Pyxpecto
  • Rename all chapter files from kebab-case to PascalCase for consistency
  • Remove individual docs/*.md files (using blogpost.md instead)

Testing Chapter Highlights

The new chapter explains:

  • Why testing matters even with F#'s strong type system (parsers, external dependencies, cross-platform transpilation)
  • Notes that Fable itself has 2000+ Python tests and 2600+ JS tests
  • Documents Fable.Python.Testing module (available in Fable.Python 5.0.0-alpha.21.5):
    • equal, notEqual assertions
    • throwsError, throwsErrorContaining, throwsAnyError, doesntThrow for exception testing
  • Shows Expecto-style testing with Fable.Pyxpecto as an alternative

Test plan

  • just blogpost generates successfully
  • Markdown linting passes
  • Review generated docs/blogpost.md for correct rendering

🤖 Generated with Claude Code

- Add new Testing chapter covering Fable.Python.Testing and Pyxpecto
- Explains why testing matters even with F#'s strong type system
- Documents Fable.Python.Testing assertions (equal, notEqual, throws*, etc.)
- Shows both XUnit-style (pytest) and Expecto-style (Pyxpecto) approaches
- Rename all chapter files to PascalCase for consistency
- Remove individual docs/*.md files (using blogpost.md instead)
- Update justfile with testing in chapters list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbrattli
dbrattli merged commit 7a63b3e into main Dec 21, 2025
1 check passed
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