-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from gongo/0.6.0
Release 0.6.0
- Loading branch information
Showing
115 changed files
with
2,512 additions
and
1,853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ doc/ | |
lib/bundler/man | ||
pkg | ||
rdoc | ||
spec/reports | ||
test/tmp | ||
test/version_tmp | ||
tmp | ||
vendor/bundle | ||
report.html | ||
.sass-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
require 'bundler/gem_tasks' | ||
require 'sass' | ||
require 'bootstrap-sass' | ||
require 'rake/testtask' | ||
|
||
desc 'Compile report CSS file' | ||
task :compile do | ||
input = open('lib/turnip_formatter/template/turnip_formatter.scss').read | ||
dir = 'lib/turnip_formatter/renderer/html/assets' | ||
input = open("#{dir}/turnip_formatter.scss").read | ||
engine = Sass::Engine.new(input, syntax: :scss, style: :compressed) | ||
|
||
File.open('lib/turnip_formatter/template/turnip_formatter.css', 'w') do |f| | ||
File.open("#{dir}/turnip_formatter.css", 'w') do |f| | ||
f.write engine.render | ||
end | ||
end | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << "test" | ||
t.test_files = FileList['test/**/test*.rb'] | ||
t.verbose = true | ||
t.warning = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Feature: A feature with argument | ||
Scenario: This is a feature with DocString | ||
When the monster sings the following song | ||
""" | ||
Oh here be monsters | ||
This is cool | ||
""" | ||
Then the song should have 2 lines | ||
|
||
Scenario: This is a feature with DocTable | ||
When there are monsters: | ||
| gargoyle | | ||
| Cockatrice | | ||
Then there should be 2 monsters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Feature: Battle a monster | ||
|
||
Scenario: normal monster | ||
Given there is a monster | ||
When I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
Scenario: [ERROR] strong monster | ||
|
||
This scenario will not success because his attacks can't defeat strong monster | ||
|
||
Given there is a strong monster | ||
When I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
@aggregate_failures | ||
Scenario: [ERROR] boss monster (aggregate_failures) | ||
|
||
Even if error occurs during steps, test will run to the end | ||
|
||
Given there is a boss monster | ||
When I attack it | ||
Then it should die | ||
When I attack it | ||
Then it should die | ||
When I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
Scenario: [PENDING] spell magic | ||
|
||
This scenario will not success because he can't cast spell | ||
|
||
Given there is a strong monster | ||
When I cast a spell 'fireball' | ||
And I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
@magician | ||
Scenario: spell magic | ||
|
||
`magician` can cast spell. | ||
|
||
Given there is a strong monster | ||
When I cast a spell 'fireball' | ||
And I attack it | ||
Then it should die | ||
And Fanfare |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Battle a monster with hooks | ||
|
||
@before_hook_error | ||
Scenario: [ERROR] Error in before hook | ||
Given there is a monster | ||
When I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
@after_hook_error | ||
Scenario: [ERROR] Error in after hook | ||
Given there is a monster | ||
When I attack it | ||
Then it should die | ||
And Fanfare | ||
|
||
@after_hook_error | ||
Scenario: [ERROR] Error in steps and after hook | ||
Given there is a strong monster | ||
When I attack it | ||
Then it should die | ||
And Fanfare |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.