- Use `busted` for testing — write specs with `describe('component', function() it('behavior', function() ... end) end)` blocks.
- Use `assert.are.equal(expected, actual)` and `assert.has_error(fn)` from busted's assertion library — messages appear in failure output.
- Run tests with `busted --coverage` to measure line coverage via `luacov` — configure ignored files in `.luacov`.
- Use `before_each(function() ... end)` and `after_each(function() ... end)` for setup and teardown within `describe` blocks.
- Use `stub(module, 'function_name')` from `luassert.stub` to replace dependencies — restore with `module.function_name:revert()` in `after_each`.
- Use `assert.spy(fn).was_called_with(arg1, arg2)` to verify function calls in integration tests.
- Isolate modules between tests by clearing `package.loaded['module.name']` in `before_each` to force fresh `require` calls.