~/talk

Writing Tailormade Unit Tests with ChatGPT

Talkat CityJS Athens 2023 · on Tuesday, 2023-05-30· [ai-assisted-development, testing]
links:none on file
slides:none on file

Shows how to fine-tune an OpenAI model with JSONL prompt/completion pairs so generated tests match an existing testing style, using a Node.js web service with create training and generate endpoints to push data and request unit tests. Demonstrates feeding positive/negative/edge-case tests, warns that training is time-consuming and expensive and that context windows (≈3k–15k tokens) limit chat-based approaches, and suggests WizardLM as an open-source alternative while emphasizing a manual review feedback loop.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 4:23Why unit tests matter
  3. 9:04Limitations of plain ChatGPT
  4. 13:00Training custom ChatGPT models
  5. 18:43Testing and validating the model
  6. 21:54Challenges and alternatives
~/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.