Skip to content
testingrequiredPublic

About

CLI tests using markdown.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

specmd

CLI tests using markdown.

Usage

Prepend specmd new in front of a command to generate a spec markdown file recording the results.

specmd new curl https://example.com > curl.spec.md

Creates curl.spec.md:

```shell
curl -s https://example.com
```

```stdout
<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content="width=device-width,initial-scale=1"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>

```

```stderr

```

```exit
0
```

You can then test it:

specmd test curl.spec.md

Run All Tests

All the specmd test files using:

specmd test examples/*.spec.md

About

CLI tests using markdown.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages