Skip to content

Commit

Permalink
Improve FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jun 29, 2024
1 parent 13c401a commit b64e6a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@ Instead, it shows Test-Driven Development in Rust with Bevy.

## What is the goal of this book?

The goal is to demonstrate how to do Test-Driven Development ('TDD')
The goal is to demonstrate how to do Test-Driven Development
in Rust with Bevy.

Each chapter introduces as few new concepts as possible.
Due to this, the first chapters do not result in a playable game yet.

## What are the subgoals of this book?

* Always achieve 100% code coverage when ignoring
the `main` function in `src/main.rs`.

## What are the non-goals of this book?

* Have a running game in each chapter
* Always have the fastest solution
* Explain Rust
* Explain Bevy

## Why ignore the `main` function in `src/main.rs` for code coverage?

Because one cannot test the `main` function.

The `main` is where a game is started.
When the game is started, one needs user input to close the game.
TDD needs tests that do not require user input.
Expand Down

0 comments on commit b64e6a3

Please sign in to comment.