~/talk

Breaking Your Code in New and Exciting Ways

Talkat NDC Oslo 2018 · 2018-06-11..06-15· [testing]
links:none on file
slides:none on file

Property-based testing with FsCheck on .NET generates surprising failing inputs (found a counterexample after 12 tries and shrunk it 3 times) that break a naive regex-based templater; control characters, nulls and keys with asterisks produce invalid RegexExceptions. The demo builds C# and F# generators: a tagless string generator and a constrained IDictionary generator that enforces valid identifier rules, then produces paired input/output cases so rendering is tested against expected outputs — generators catch real bugs and then are hardened to make the tests pass.

AI-written summary · about

  1. 0:00Start
  2. 1:02Property Based Testing
  3. 5:56Templating Library
  4. 9:38Submit Error Handling
  5. 10:21Discriminated Union
  6. 13:51Invariant Property
  7. 37:53String Shrinker
  8. 40:56Override the Default Generators of Existing Types
  9. 48:39Type Aliases
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.