-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' (Release 3.0.2)
- Loading branch information
Showing
16 changed files
with
206 additions
and
864 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
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 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2013-2017, scenarioo.org Development Team | ||
|
||
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. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## Migration Guide | ||
|
||
This migration guide explains how to switch from SceanriooJS 1.x to ScenariooJS 2.x | ||
|
||
### Jasmine 2 Support | ||
|
||
Version 2.x of scenarioo-js will depend on jasmine 2. jasmine 1.x support will be dropped. | ||
Check the [Examples](/example) for a working example. | ||
|
||
### Scenarioo Configuration | ||
|
||
The configuration of the reporter has become more easier and has to be changed accordingly in the preparation code of your end-2-end tests. | ||
|
||
The `scenarioo.reporter` is not available anymore. Instead you just have to call the setup function `scenarioo.setupJasmineReporter` to setup the reporter for you with jasmine 2. | ||
|
||
See documentation above for `Configuration` to see how this works now. | ||
|
||
### Application-specific DSL | ||
|
||
The `scenarioo.describeScenario` and `scenarioo.describeUseCase` functions are not defined anymore out of the box, | ||
and have either to be replaced by pure jasmine, a custom written DSL or by one of the out of the box provided DSLs. | ||
|
||
We recommend to use the new `Fluent DSL` or your own defined Application-Specific DSL | ||
but for a fast migration it might be most easy to use the `Backwards DSL`, that is provided only for fast migration. | ||
|
||
### Backwards DSL for Fast Migration | ||
|
||
Using Backwards DSL you can use the same old functions, that you had in ScenariooJS 0.x and 1.x. | ||
|
||
The `Backwards DSL` can be activated as follows: | ||
|
||
``` | ||
// call this in your protractor onPrepare code to activate backwards DSL functions | ||
scenarioo.setupBackwardsDsl(); | ||
``` | ||
|
||
This brings you the old 1.x style DSL with `describeUseCase` and `describeScenario` functions back, for easier migration | ||
(with or without `scenarioo.` in front, both works). | ||
|
||
You can then later migrate those tests to the new `Fluent DSL` or even your own defined DSL or the pure vanilla jasmine 2 syntax. | ||
We recommend to have a look at the new [Examples](/example) to see what style fits best for your project. | ||
|
||
### Save Steps with `scenarioo.saveStep` | ||
|
||
The "saveStep" function is now directly exposed on scenarioo: | ||
|
||
```javascript | ||
scenarioo.describeUseCase('Example Usecase', function () { | ||
|
||
scenarioo.describeScenario('Example Scenario ', function () { | ||
scenarioo.saveStep('start'); // instead of scenarioo.docuWriter.saveStep | ||
}); | ||
|
||
}); | ||
|
||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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 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 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