Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 832 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 832 Bytes

gotestmd

Tool to generate go tests based on markdown files.

Usages

Generate suites with default bash runner:

gotestmd INPUT_DIR OUTPUT_DIR

Generate suites that using a custom runner:

gotestmd INPUT_DIR OUTPUT_DIR BASE_PKG

Makrdown syntax

  • #Run - OPTIONAL - Contains any text and bash steps. Can be any level, should be used once in a file.
  • #Cleanup - OPTIONAL - Contains bash steps. Can be any level, should be used once in a file.
  • #Requires - OPTIONAL - Contains a list of required dependencies in format markdown links.
  • #Includes - OPTIONAL -Contains a list of using examples in context of this example in format markdown links.

To generate minimal suite required one of sections: Run or Cleanup or Requires.

Examples

See at examples