Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for testing library deployment
- Loading branch information
Showing
41 changed files
with
158 additions
and
42 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...llow-Tests.package/JQuery2DeploymentMetadataLibraryTest.class/instance/testDeployFiles.st
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,8 @@ | ||
tests | ||
testDeployFiles | ||
|
||
self | ||
useFileTestingPlatformDuring: [ JQuery2DeploymentMetadataLibrary default deployFiles. | ||
self | ||
assert: GRPlatform current createdFolders equals: #('jQuery-2.2.4'); | ||
assert: GRPlatform current createdFiles equals: #('jQuery-2.2.4/jquery-2.2.4.min.js') ] |
6 changes: 0 additions & 6 deletions
6
...ow-Tests.package/JQuery2DeploymentMetadataLibraryTest.class/instance/testHanldesFolder.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...w-Tests.package/JQuery2DeploymentMetadataLibraryTest.class/instance/testIsForDeplyment.st
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
source/Willow-Tests.package/JQuery2DeploymentMetadataLibraryTest.class/methodProperties.json
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,8 +1,9 @@ | ||
{ | ||
"instance" : { | ||
"testIsForDeplyment" : "isosa 6/27/2017 10:27", | ||
"testIsForDeployment" : "ISosa 7/3/2017 10:38:59", | ||
"testHandlesFolder" : "ISosa 7/3/2017 10:38:59", | ||
"testUpdateRoot" : "isosa 6/27/2017 10:30", | ||
"testHanldesFolder" : "isosa 6/27/2017 10:28" | ||
"testDeployFiles" : "GabrielOmarCotelli 7/3/2017 15:03" | ||
}, | ||
"class" : { } | ||
} |
2 changes: 1 addition & 1 deletion
2
source/Willow-Tests.package/JQuery2DeploymentMetadataLibraryTest.class/properties.json
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
8 changes: 8 additions & 0 deletions
8
...low-Tests.package/JQuery2DevelopmentMetadataLibraryTest.class/instance/testDeployFiles.st
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,8 @@ | ||
tests | ||
testDeployFiles | ||
|
||
self | ||
useFileTestingPlatformDuring: [ JQuery2DevelopmentMetadataLibrary default deployFiles. | ||
self | ||
assert: GRPlatform current createdFolders equals: #('jQuery-2.2.4'); | ||
assert: GRPlatform current createdFiles equals: #('jQuery-2.2.4/jquery-2.2.4.js') ] |
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
2 changes: 1 addition & 1 deletion
2
source/Willow-Tests.package/JQuery2DevelopmentMetadataLibraryTest.class/properties.json
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
1 change: 1 addition & 0 deletions
1
source/Willow-Tests.package/WillowFileTestingPlatform.class/README.md
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 @@ | ||
I'm a platform wrapping the installed one but providing facilities to test stuff related to the file system |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/class/wrapping..st
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,4 @@ | ||
Configuring | ||
wrapping: aGRPlatform | ||
|
||
^ self new initializeWrapping: aGRPlatform |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/cometWait.st
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,4 @@ | ||
comet | ||
cometWait | ||
|
||
^platform cometWait |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/createdFiles.st
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,4 @@ | ||
accessing | ||
createdFiles | ||
|
||
^ createdFiles asArray |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/createdFolders.st
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,4 @@ | ||
accessing | ||
createdFolders | ||
|
||
^ Array withAll: createdFolders |
5 changes: 5 additions & 0 deletions
5
...Willow-Tests.package/WillowFileTestingPlatform.class/instance/ensureExistenceOfFolder..st
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,5 @@ | ||
file library | ||
ensureExistenceOfFolder: aString | ||
|
||
createdFolders add: aString. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/initializeWrapping..st
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 @@ | ||
initialization | ||
initializeWrapping: aGRPlatform | ||
|
||
platform := aGRPlatform. | ||
createdFolders := GRSmallOrderedSet new. | ||
createdFiles := OrderedCollection new |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/localNameOf..st
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,4 @@ | ||
file library | ||
localNameOf: aString | ||
|
||
^ platform localNameOf: aString |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowFileTestingPlatform.class/instance/pathSeparator.st
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,4 @@ | ||
file library | ||
pathSeparator | ||
|
||
^ platform pathSeparator |
4 changes: 4 additions & 0 deletions
4
...e/Willow-Tests.package/WillowFileTestingPlatform.class/instance/write.toFile.inFolder..st
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,4 @@ | ||
file library | ||
write: aStringOrByteArray toFile: aFileNameString inFolder: aFolderString | ||
|
||
createdFiles add: ('<1s>/<2s>' expandMacrosWith: aFolderString with: aFileNameString) |
15 changes: 15 additions & 0 deletions
15
source/Willow-Tests.package/WillowFileTestingPlatform.class/methodProperties.json
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 @@ | ||
{ | ||
"instance" : { | ||
"ensureExistenceOfFolder:" : "GabrielOmarCotelli 7/3/2017 14:53", | ||
"write:toFile:inFolder:" : "GabrielOmarCotelli 7/3/2017 14:55", | ||
"cometWait" : "GabrielOmarCotelli 7/3/2017 14:43", | ||
"initializeWrapping:" : "GabrielOmarCotelli 7/3/2017 14:56", | ||
"createdFiles" : "GabrielOmarCotelli 7/3/2017 14:52", | ||
"createdFolders" : "GabrielOmarCotelli 7/3/2017 14:59", | ||
"localNameOf:" : "GabrielOmarCotelli 7/3/2017 14:44", | ||
"pathSeparator" : "GabrielOmarCotelli 7/3/2017 14:43" | ||
}, | ||
"class" : { | ||
"wrapping:" : "GabrielOmarCotelli 7/3/2017 14:34" | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
source/Willow-Tests.package/WillowFileTestingPlatform.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 7/3/2017 14:29", | ||
"super" : "GRPlatform", | ||
"category" : "Willow-Tests", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"platform", | ||
"createdFolders", | ||
"createdFiles" | ||
], | ||
"name" : "WillowFileTestingPlatform", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
source/Willow-Tests.package/WillowLibraryTestCase.class/README.md
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 @@ | ||
I'm an abstract test case adding support for testing libraries deployment |
4 changes: 4 additions & 0 deletions
4
source/Willow-Tests.package/WillowLibraryTestCase.class/class/isAbstract.st
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,4 @@ | ||
testing | ||
isAbstract | ||
|
||
^self name = #WillowLibraryTestCase |
9 changes: 9 additions & 0 deletions
9
...illow-Tests.package/WillowLibraryTestCase.class/instance/useFileTestingPlatformDuring..st
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,9 @@ | ||
private | ||
useFileTestingPlatformDuring: aBlock | ||
|
||
| installedPlatform | | ||
|
||
installedPlatform := GRPlatform current. | ||
[ GRPlatform current: (WillowFileTestingPlatform wrapping: installedPlatform). | ||
aBlock value ] | ||
ensure: [ GRPlatform current: installedPlatform ] |
8 changes: 8 additions & 0 deletions
8
source/Willow-Tests.package/WillowLibraryTestCase.class/methodProperties.json
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,8 @@ | ||
{ | ||
"instance" : { | ||
"useFileTestingPlatformDuring:" : "GabrielOmarCotelli 7/3/2017 14:33" | ||
}, | ||
"class" : { | ||
"isAbstract" : "GabrielOmarCotelli 7/3/2017 14:28" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Willow-Tests.package/WillowLibraryTestCase.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 7/3/2017 14:27", | ||
"super" : "WillowTestCase", | ||
"category" : "Willow-Tests", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WillowLibraryTestCase", | ||
"type" : "normal" | ||
} |
8 changes: 8 additions & 0 deletions
8
...ow-Tests.package/WillowNamespaceFileMetadataLibraryTest.class/instance/testDeployFiles.st
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,8 @@ | ||
tests | ||
testDeployFiles | ||
|
||
self | ||
useFileTestingPlatformDuring: [ WillowNamespaceFileMetadataLibrary default deployFiles. | ||
self | ||
assert: GRPlatform current createdFolders equals: #('willow-4.0.0' 'willow-4.0.0/js'); | ||
assert: GRPlatform current createdFiles equals: #('willow-4.0.0/js/willow.js') ] |
3 changes: 2 additions & 1 deletion
3
...e/Willow-Tests.package/WillowNamespaceFileMetadataLibraryTest.class/methodProperties.json
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,8 +1,9 @@ | ||
{ | ||
"instance" : { | ||
"testJavascriptCode" : "GabrielOmarCotelli 5/9/2017 14:43", | ||
"testTesting" : "GabrielOmarCotelli 4/19/2017 15:30", | ||
"testInstanceCreation" : "GabrielOmarCotelli 4/19/2017 15:29", | ||
"testJavascriptCode" : "GabrielOmarCotelli 5/9/2017 14:43" | ||
"testDeployFiles" : "GabrielOmarCotelli 7/3/2017 15:06" | ||
}, | ||
"class" : { } | ||
} |
2 changes: 1 addition & 1 deletion
2
source/Willow-Tests.package/WillowNamespaceFileMetadataLibraryTest.class/properties.json
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
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
source/Willow.package/GRSmallOrderedSet.extension/instance/at..st
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,4 @@ | ||
*Willow-SeasideExtensions | ||
at: anIndex | ||
|
||
^ table at: anIndex |
6 changes: 6 additions & 0 deletions
6
source/Willow.package/GRSmallOrderedSet.extension/methodProperties.json
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 @@ | ||
{ | ||
"instance" : { | ||
"at:" : "GabrielOmarCotelli 7/3/2017 15:00" | ||
}, | ||
"class" : { } | ||
} |
3 changes: 3 additions & 0 deletions
3
source/Willow.package/GRSmallOrderedSet.extension/properties.json
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,3 @@ | ||
{ | ||
"name" : "GRSmallOrderedSet" | ||
} |
3 changes: 1 addition & 2 deletions
3
source/Willow.package/JQuery2DeploymentMetadataLibrary.class/instance/jquery224minJs.st
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,9 +1,8 @@ | ||
uploaded metadata | ||
jquery224minJs | ||
|
||
<ignoreforCoverage> | ||
^ WAFileLibraryResource | ||
filepath: 'jquery-2.2.4.min.js' | ||
mimeType: (WAMimeType main: 'application' sub: 'x-javascript') | ||
cacheDuration: self defaultCacheDuration | ||
cacheDuration: self class defaultCacheDuration | ||
contents: (GRDelayedSend receiver: self selector: #jquery224minJsContent) |
1 change: 0 additions & 1 deletion
1
...e/Willow.package/JQuery2DeploymentMetadataLibrary.class/instance/jquery224minJsContent.st
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
source/Willow.package/JQuery2DeploymentMetadataLibrary.class/methodProperties.json
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
3 changes: 1 addition & 2 deletions
3
source/Willow.package/JQuery2DevelopmentMetadataLibrary.class/instance/jquery224Js.st
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,9 +1,8 @@ | ||
uploaded metadata | ||
jquery224Js | ||
|
||
<ignoreForCoverage> | ||
^ WAFileLibraryResource | ||
filepath: 'jquery-2.2.4.js' | ||
mimeType: (WAMimeType main: 'application' sub: 'x-javascript') | ||
cacheDuration: self defaultCacheDuration | ||
cacheDuration: self class defaultCacheDuration | ||
contents: (GRDelayedSend receiver: self selector: #jquery224JsContent) |
1 change: 0 additions & 1 deletion
1
source/Willow.package/JQuery2DevelopmentMetadataLibrary.class/instance/jquery224JsContent.st
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,7 +1,6 @@ | ||
uploaded | ||
jquery224JsContent | ||
|
||
<ignoreForCoverage> | ||
^ '/*! | ||
* jQuery JavaScript Library v2.2.4 | ||
* http://jquery.com/ | ||
|
4 changes: 2 additions & 2 deletions
4
source/Willow.package/JQuery2DevelopmentMetadataLibrary.class/methodProperties.json
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
9 changes: 0 additions & 9 deletions
9
source/Willow.package/JQuery2MetadataLibrary.class/instance/defaultCacheDuration.st
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
source/Willow.package/JQuery2MetadataLibrary.class/methodProperties.json
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
Binary file not shown.