Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Write Drunk - Test Automated

sven
February 02, 2019

Write Drunk - Test Automated

Documentation Quality Assurance

- Tips and Tricks
- Start small, extend to CI

sven

February 02, 2019
Tweet

Other Decks in Programming

Transcript

  1. 2 Hello! Nice to meet you • DocsOps Engineer •

    DevOps and SRE background • Plone • TestTheDocs • Write the Docs About Me - The least interesting part of this talk This talk is opinionated and I like to complain!
  2. Reality Check Facts ▪ Writing is hard ▪ Continuous Integration

    is not always easy ▪ There is no golden or perfect solution ▪ (Automated) checks can only help you till a certain level ▪ QA starts locally in your editor 3 Disclaimer ▪ Based on OSS Communities ▪ You may recognize your own commits
  3. The Golden Circle Well written and maintained documentation should be

    part of your internal and public company culture. 4 Takeaways Good documentation gets people to jump into your project quicker Good documentation will save an organization’s time,money and effort Lack of good documentation is a problem for acceptance
  4. It is not only about the front-end ! Care about

    your editors 5 Readable source is as important as the rendered HTML • Less frustrating • Easier to read and understand • Quicker edits = faster deploys
  5. 6

  6. 7

  7. Knowledge is beautiful “I love it when a plan comes

    together” 8 Planning • Define style guides • Define standards and values for checks Considerations • Start small, extend step by step • Start from the beginning • Know your audience • Know your contributors • Be strict and be friendly • Useful error messages
  8. Developers are your friends ▪ Adjust to their workflow as

    much as possible ▪ Help them by using templates ▪ Add links to documentation in PR templates and error messages ▪ Only run checks on changed files 11
  9. Do not forget Friendly reminder 12 • Protect your branches

    • Validate all your checks according to best practices • Keep checks “simple” and “easy” to adjust • Start small • Make your checks depending on each other
  10. Continuous Integration “Docs as Code” 13 • Do not break

    the build • If you broke the build, FIX it • Do not merge a broken build
  11. Here be dragons 15 Disclaimer This is only a demo

    setup for local usage Overview • Basic example with travis • Basic example running CI locally