Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Update rake file to run integration test via Feature: Fetch apiary.ap…
Browse files Browse the repository at this point in the history
…ib from API_NAME.apiary.io

  # This is integration testing you have to set APIARY_API_KEY
  Scenario: Fetch apiary.apib from API_NAME.apiary.io                # features/fetch.feature:4
    When I run `apiary fetch --api-name apiaryclienttest`            # aruba-0.6.1/lib/aruba/cucumber.rb:93
    Then the output should contain the content of file "apiary.apib" # features/step_definitions/file_content_step.rb:1

Feature: Show API documentation in specified browser

  # This is integration testing you have to set APIARY_API_KEY
  Scenario: Write generated HTML into specified file                  # features/preview.feature:4
    When I run `apiary preview --path apiary.apib --output=test.html` # aruba-0.6.1/lib/aruba/cucumber.rb:93
    Then a file named "test.html" should exist                        # aruba-0.6.1/lib/aruba/cucumber.rb:307

Feature: Publish apiary.apib on docs.API_NAME.apiary.io

  # This is integration testing you have to set APIARY_API_KEY
  Scenario: Publish apiary.apib on docs.API_NAME.apiary.io                         # features/publish.feature:4
    When I run `apiary publish --path=apiary.apib --api-name 1111apiaryclienttest` # aruba-0.6.1/lib/aruba/cucumber.rb:93
    Then the exit status should be 1                                               # aruba-0.6.1/lib/aruba/cucumber.rb:197

Feature: Version of Apiary client

  Scenario: Print the semantic version of Apiary client                                                                        # features/version.feature:3
    When I run `apiary version`                                                                                                # aruba-0.6.1/lib/aruba/cucumber.rb:93
    Then the output should match /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ # aruba-0.6.1/lib/aruba/cucumber.rb:180
    And the exit status should be 0                                                                                            # aruba-0.6.1/lib/aruba/cucumber.rb:197

4 scenarios (4 passed)
9 steps (9 passed)
0m3.871s
  • Loading branch information
Ladislav Prskavec committed Sep 15, 2014
1 parent 3a41508 commit b0c1eec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
require "rubygems"
require "rspec/core/rake_task"
require 'yard'
require 'cucumber'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
end

desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |t|
Expand All @@ -11,6 +17,8 @@ end
desc 'Default: Run all specs.'
task :default => :spec

task :test => :spec

task :doc => :yard
task :gem => :gemspec

Expand Down

0 comments on commit b0c1eec

Please sign in to comment.