Skip to content
academia.sh

Unit 01 of 02

Packages and Testing

A package's specification, version and file name, version constraints and the lock file, test order shuffled by a seed and shared state, tests that take the clock and collaborators from outside, fake objects and repeatable test data.

Published Updated

Lessons

  1. 01 Gem Structure and Publishing This course asks what determines a result. The lesson introduces the nine-observation measurement core, then measures the package specification, the origin of the file name, the dependency kinds and version comparison. 14 min read
  2. 02 Dependency Management Why does the installed version not change while the lock file stays the same? The lesson measures which versions a version constraint accepts, shows that resolution without a lock file depends on the registry, and that the dependency is the determinant. 12 min read
  3. 03 Testing Frameworks Why do the same tests sometimes fail? The lesson builds the three parts of a test framework in pure Ruby and measures that the seed chooses the order and that shared state makes a test fail. 12 min read
  4. 04 Mocking and Test Data Why does a test that reads the clock fail tomorrow? The lesson measures passing the clock in from outside, fake objects and seeded test data, and separates which determinant mocking removes and which it leaves. 6 min read

Start typing to search.

↑↓ ↵ Esc navigate · open · close