forked from cheezy/testgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
49 additions
and
38 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.bundle | ||
Gemfile.lock | ||
pkg/* | ||
tmp |
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,3 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
|
||
print "nothing" | ||
require 'testgen/cli' | ||
TestGen::CLI.start |
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 +1,2 @@ | ||
default: --no-source | ||
default: --no-source --color --format pretty | ||
autotest: --no-source --color --format pretty |
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,6 @@ | ||
require 'fileutils' | ||
|
||
After do | ||
dir = File.join(File.dirname(__FILE__), '../../', 'tmp/aruba/sample') | ||
FileUtils.rm_rf dir | ||
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
Feature: Generating a project with TestGen | ||
|
||
Scenario: Generating the directory structure | ||
When I run `testgen sample` | ||
Then the output should contain "generating sample directory" | ||
Scenario: Generating the top level project directory | ||
When I run `testgen project sample` | ||
Then a directory named "sample" should exist | ||
|
||
|
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,5 +1,2 @@ | ||
require "testgen/version" | ||
|
||
module TestGen | ||
# Your code goes here... | ||
end | ||
require 'testgen/cli' |
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,11 @@ | ||
require 'thor' | ||
require 'testgen/generators/project' | ||
|
||
module TestGen | ||
class CLI < Thor | ||
desc "project <project_name>", "Create a new test project" | ||
def project(name) | ||
TestGen::Generators::Project.start([name]) | ||
end | ||
end | ||
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,21 @@ | ||
require 'thor/group' | ||
|
||
module TestGen | ||
module Generators | ||
class Project < Thor::Group | ||
include Thor::Actions | ||
|
||
argument :name, :type => :string, :desc => 'The name of the project' | ||
desc "Generates a project structure for testing with Cucumber" | ||
|
||
def self.source_root | ||
File.dirname(__FILE__) | ||
end | ||
|
||
def create_top_directory | ||
empty_directory(name) | ||
end | ||
|
||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.