Glamorous Toolkit Live #3: Example-driven development
In Glamorous toolkit, an example is basically a normal test but it produces an object as a result. The object can be viewed in the inspector, or used in other examples. It can also be weaved into interactive documentation.
Examples are a different medium to express tests.
Glamorous toolkit does not have any unit test, all tests are done as examples.
In Rust, rustdoc allow embedding rust code into documentation and it’ll be run as a test (though, no result visualization).