Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added license and readme file

  • Loading branch information...
commit 2ad40ab2b8b91063517a8ab51ad89f4471ecef93 1 parent c3365d8
Jonathan Leibiusky authored
Showing with 90 additions and 0 deletions.
  1. +13 −0 LICENSE.txt
  2. +77 −0 README.md
View
13 LICENSE.txt
@@ -0,0 +1,13 @@
+Copyright 2010 Jonathan Leibiusky
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
77 README.md
@@ -0,0 +1,77 @@
+# Stores
+
+Stories is a BDD plugin for Grails that aims to make you life easier with functional testing.
+Stories does't depend on any testing framework out there. It tries to use them all, offerind a way to organize your tests as Stories and Scenarios.
+What you do inside each scenario is your problem :)... you can use either Selenium, WebTest, HtmlUnit, etc.
+
+## Using
+
+There isn't any release right now. But stay close because a first release is comming soon!
+
+To create a new story, just type:
+ grails create-story SomeStory
+
+This will generate a file in your test/stories folder. The name of the file in this case will be SomeStory.groovy.
+
+You should edit that file and add you scenarios.
+
+You can use the before and after closures to execute code before and after every scenario.
+
+ story "This is a story", {
+ before {
+ println "BEFORE"
+ }
+
+ after {
+ println "AFTER"
+ }
+
+ scenario "This is one scenario", {
+ assert 1 == 1
+ }
+
+ scenario "This is another scenario", {
+ assert 1 == 0
+ }
+ }
+
+When you run your tests all the stories will be executed as well.
+In this case you will see something like:
+-------------------------------------------------------
+Running 2 stories tests...
+This is a story
+ A scenario in the story - PASSED
+ Another scenario in the story - FAILED..... Expression: (1 == 0)
+Tests Completed in 46ms ...
+-------------------------------------------------------
+Tests passed: 1
+Tests failed: 1
+-------------------------------------------------------
+
+
+License
+-------
+
+Copyright (c) 2010 Jonathan Leibiusky
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
Please sign in to comment.
Something went wrong with that request. Please try again.