view tests/bakes/test_simple.bake @ 385:2d5f2289885a

tests: Add support for "Chef tests", which are direct CLI tests. Since Chef tests are written as YAML tests and also involve creating a mock file-system, this change includes a refactor of the bake tests to put some functionality in a common base class.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 11 May 2015 22:25:19 -0700
parents 4b1019bb2533
children
line wrap: on
line source

---
in:
    posts/2010-01-01_post1.md: 'post one'
    pages/about.md: 'URL: {{page.url}}'
    pages/_index.md: 'something'
out:
    '2010':
        '01':
            '01':
                post1.html: 'post one'
    about.html: 'URL: /about.html'
    index.html: 'something'
---
config:
    site:
        root: /whatever
in:
    posts/2010-01-01_post1.md: 'post one'
    pages/about.md: 'URL: {{page.url}}'
    pages/_index.md: 'something'
out:
    '2010':
        '01':
            '01':
                post1.html: 'post one'
    about.html: 'URL: /whatever/about.html'
    index.html: 'something'
---
in:
    pages/foo.md: |
        This page is {{page.url}}
outfiles:
    foo.html: |
        This page is /foo.html