Tips and tricks for writing tests for jx

Favour Ginko tests

  • Ginko tests allow for creating test suites with proper setup and teardown hooks
  • Easy to mark tests as pending via X or P prefix
  • Use F prefix for focused tests during development
  • Ginko
  • Gomega

Use golden files when comparing against files in testdata

  • Use golden file technique in order to easily update testdata when required.