/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.2.2
features/cache.feature
46 строк
2 KB
Ashwin Maroli
Add an option to easily disable disk-cache (#7928)
20 фев 2020, 20:47
Не верифицирован
20 фев 2020, 20:47
558e05e
Код
Авторство
О чём код?
Feature: Cache As a developer who likes to create plugins I want to be able to cache certain aspects across multiple builds And retrieve the cached aspects when needed Scenario: Default Cache directory Given I have an "index.md" page that contains "{{ site.title }}" And I have a configuration file with "title" set to "Hello World" When I run jekyll build Then I should get a zero exit status And the .jekyll-cache directory should exist And the .jekyll-cache/Jekyll/Cache/Jekyll--Cache directory should exist And the _site directory should exist And I should see "<p>Hello World</p>" in "_site/index.html" Scenario: Custom Cache directory Given I have an "index.md" page that contains "{{ site.title }}" And I have a configuration file with: | key | value | | title | Hello World | | cache_dir | .foo-cache | When I run jekyll build Then I should get a zero exit status And the .foo-cache directory should exist And the .foo-cache/Jekyll/Cache/Jekyll--Cache directory should exist But the .jekyll-cache directory should not exist And the _site directory should exist And I should see "<p>Hello World</p>" in "_site/index.html" Scenario: Disk usage in safe mode Given I have an "index.md" page that contains "{{ site.title }}" And I have a configuration file with "title" set to "Hello World" When I run jekyll build --safe Then I should get a zero exit status But the .jekyll-cache directory should not exist And the _site directory should exist And I should see "<p>Hello World</p>" in "_site/index.html" Scenario: Disabling disk usage in non-safe mode Given I have an "index.md" page that contains "{{ site.title }}" And I have a configuration file with "title" set to "Hello World" When I run jekyll build --disable-disk-cache Then I should get a zero exit status And the _site directory should exist And I should see "<p>Hello World</p>" in "_site/index.html" But the .jekyll-cache directory should not exist