-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from badetitou/development
Last Update P6
- Loading branch information
Showing
77 changed files
with
376 additions
and
171 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
SmartTest.package/CompiledMethod.extension/instance/asTestCase.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,3 @@ | ||
*SmartTest | ||
asTestCase | ||
^ self methodClass selector: self selector |
3 changes: 3 additions & 0 deletions
3
SmartTest.package/RGMethodDefinition.extension/instance/isInitializer.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,3 @@ | ||
*SmartTest | ||
isInitializer | ||
^ self selector = #initialize |
3 changes: 3 additions & 0 deletions
3
SmartTest.package/RGMethodDefinition.extension/instance/senders.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,3 @@ | ||
*SmartTest | ||
senders | ||
^ SystemNavigation default allSendersOf: self selector |
3 changes: 3 additions & 0 deletions
3
SmartTest.package/RGMethodDefinition.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" : "RGMethodDefinition" | ||
} |
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 @@ | ||
accessing | ||
shouldAnnounce | ||
^ SmTTestListener activated |
2 changes: 1 addition & 1 deletion
2
SmartTest.package/SmTBigButtonCollector.class/instance/methodModified..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,7 @@ | ||
accessing | ||
methodModified: anAnnouncement | ||
| listOfTest | | ||
listOfTest := (SmTRules finder new methodsFor: anAnnouncement newMethod). | ||
listOfTest := (SmTRules testFinder findTestsForMethod: anAnnouncement newMethod) collect: #methodReference. | ||
self collector | ||
addAll: listOfTest. | ||
self updateUIAfterAddingMethod: listOfTest. |
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
17 changes: 17 additions & 0 deletions
17
SmartTest.package/SmTCacheBuilderTest.class/instance/testRunningTestMethod5ToBuildCache.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,17 @@ | ||
tests | ||
testRunningTestMethod5ToBuildCache | ||
"This test if SmTTestCoverage find the initialize call" | ||
|
||
<CORATestBlacklisted> | ||
self assert: smartFinder cacheValues isEmpty. | ||
SmTClassTest run: #testMethod5. | ||
"Running the test fill the cache that is then no more empty but contains only the association between SmTClass>>method1 and SmTClassTest>>testMethod1" | ||
self assert: smartFinder cacheValues isNotEmpty. | ||
self assert: smartFinder cacheValues size equals: 2. | ||
|
||
self | ||
assert: (smartFinder cacheValues at: (RGMethodDefinition className: 'SmTClass2' selector: #initialize isMetaSide: false)) | ||
equals: {(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod5 isMetaSide: false)} asSet. | ||
self | ||
assert: (smartFinder cacheValues at: (RGMethodDefinition className: 'SmTClassTest' selector: #testMethod5 isMetaSide: false)) | ||
equals: {(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod5 isMetaSide: false)} asSet |
Empty file.
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 @@ | ||
initialization | ||
initialize | ||
instVar1 := nil. |
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,14 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "Object", | ||
"category" : "SmartTest-Tests-Data", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"instVar1", | ||
"instVar2" | ||
], | ||
"name" : "SmTClass2", | ||
"type" : "normal" | ||
} |
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 @@ | ||
test data | ||
testMethod5 | ||
^ SmTClass2 new. |
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
4 changes: 2 additions & 2 deletions
4
SmartTest.package/SmTFinderAbstractTest.class/instance/tearDown.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,5 +1,5 @@ | ||
helpers | ||
running | ||
tearDown | ||
"rest the cache" | ||
"reset the cache" | ||
smartFinder resetCache. | ||
super tearDown |
11 changes: 11 additions & 0 deletions
11
SmartTest.package/SmTFinderAbstractTest.class/instance/testModificationOnInitialize.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,11 @@ | ||
tests | ||
testModificationOnInitialize | ||
<CORATestBlacklisted> | ||
| testsFound | | ||
testsFound := self searchTestMethodsFor: SmTClass2 >> #initialize. | ||
|
||
self deny: (testsFound includes: testMethod1). | ||
self deny: (testsFound includes: testMethod2). | ||
self deny: (testsFound includes: testMethod3). | ||
self deny: (testsFound includes: testMethod4). | ||
self assert: (testsFound includes: testMethod5). |
10 changes: 10 additions & 0 deletions
10
SmartTest.package/SmTFinderAbstractTest.class/instance/testModificationOnTest.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,10 @@ | ||
tests | ||
testModificationOnTest | ||
<CORATestBlacklisted> | ||
| testsFound | | ||
testsFound := self searchTestMethodsFor: SmTClassTest >> #testMethod4. | ||
|
||
self deny: (testsFound includes: testMethod1). | ||
self deny: (testsFound includes: testMethod2). | ||
self deny: (testsFound includes: testMethod3). | ||
self assert: (testsFound includes: testMethod4). |
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
71 changes: 18 additions & 53 deletions
71
SmartTest.package/SmTFinderStrategyReflectivityTest.class/instance/initCache.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,58 +1,23 @@ | ||
initialization | ||
initCache | ||
^ {((RGMethodDefinition | ||
className: 'SmTClass' | ||
selector: #method1 | ||
isMetaSide: false) | ||
^ {((RGMethodDefinition className: 'SmTClass' selector: #method1 isMetaSide: false) | ||
-> | ||
{(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod1 | ||
isMetaSide: false). | ||
(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod2 | ||
isMetaSide: false)} asSet). | ||
((RGMethodDefinition | ||
className: 'SmTClass' | ||
selector: #method2 | ||
isMetaSide: false) | ||
{(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod1 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod2 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTInheritClassTest' selector: #testMethod1 isMetaSide: false)} asSet). | ||
((RGMethodDefinition className: 'SmTClass' selector: #method2 isMetaSide: false) | ||
-> {(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod2 isMetaSide: false)} asSet). | ||
((RGMethodDefinition className: 'SmTClass' selector: #method3: isMetaSide: false) | ||
-> | ||
{(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod2 | ||
isMetaSide: false)} asSet). | ||
((RGMethodDefinition | ||
className: 'SmTClass' | ||
selector: #method3: | ||
isMetaSide: false) | ||
{(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod1 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod2 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod3 isMetaSide: false)} asSet). | ||
((RGMethodDefinition className: 'SmTClass' selector: #method4 isMetaSide: false) | ||
-> | ||
{(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod1 | ||
isMetaSide: false). | ||
(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod2 | ||
isMetaSide: false). | ||
(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod3 | ||
isMetaSide: false)} asSet). | ||
((RGMethodDefinition | ||
className: 'SmTClass' | ||
selector: #method4 | ||
isMetaSide: false) | ||
-> | ||
{(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod2 | ||
isMetaSide: false). | ||
(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod3 | ||
isMetaSide: false). | ||
(RGMethodDefinition | ||
className: 'SmTClassTest' | ||
selector: #testMethod4 | ||
isMetaSide: false)} asSet)} asDictionary | ||
{(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod2 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod3 isMetaSide: false). | ||
(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod4 isMetaSide: false)} asSet). | ||
((RGMethodDefinition className: 'SmTClass2' selector: #initialize isMetaSide: false) | ||
-> {(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod5 isMetaSide: false)} asSet). | ||
((RGMethodDefinition className: 'SmTClassTest' selector: #testMethod4 isMetaSide: false) | ||
-> {(RGMethodDefinition className: 'SmTClassTest' selector: #testMethod4 isMetaSide: false)} asSet)} asDictionary |
Empty file.
3 changes: 3 additions & 0 deletions
3
SmartTest.package/SmTInheritClassTest.class/instance/setUp.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,3 @@ | ||
initialization | ||
setUp | ||
smTtestClass := SmTClass new |
11 changes: 11 additions & 0 deletions
11
SmartTest.package/SmTInheritClassTest.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" : "", | ||
"super" : "SmTSuperClassTest", | ||
"category" : "SmartTest-Tests-Data", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "SmTInheritClassTest", | ||
"type" : "normal" | ||
} |
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,4 +1,3 @@ | ||
initialization | ||
initialize | ||
self disable. | ||
self enable | ||
self disable |
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,6 +1,2 @@ | ||
protocol | ||
enable | ||
SystemAnnouncer uniqueInstance unsubscribe: self. | ||
{(MethodModified -> #methodModified:). | ||
(MethodAdded -> #methodAdded:)} | ||
do: [ :pair | SystemAnnouncer uniqueInstance weak when: pair key send: pair value to: self ]. |
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
SmartTest.package/SmTListener.class/instance/methodModified..st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...Test.package/SmTReflectivityTestFinderStrategy.class/instance/buildCacheFromTestSuite..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 @@ | ||
api | ||
buildCacheFromTestSuite: aTestSuite | ||
aTestSuite flatCollectTests do: [ :aTestCase | self installProxyFor: aTestCase. aTestCase run ]. | ||
MetaLink uninstallAll |
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 @@ | ||
instance creation | ||
fillCache | ||
SmTSelectPackageBrowser openWithSmartFinder: self testFinder | ||
|
||
|
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
Empty file.
6 changes: 6 additions & 0 deletions
6
SmartTest.package/SmTSelectPackageBrowser.class/class/openWithSmartFinder..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 @@ | ||
as yet unclassified | ||
openWithSmartFinder: aSmartFinder | ||
self new | ||
smartFinder: aSmartFinder; | ||
items: RPackageOrganizer default packages; | ||
openWithSpec |
8 changes: 8 additions & 0 deletions
8
SmartTest.package/SmTSelectPackageBrowser.class/instance/addAllItems.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 @@ | ||
api | ||
addAllItems | ||
| tmp | | ||
tmp := self sort: selectedModel listItems withAll: toSelectModel listItems. | ||
selectedModel items: tmp. | ||
toSelectModel items: #(). | ||
toSelectModel updateList. | ||
selectedModel updateList |
8 changes: 8 additions & 0 deletions
8
SmartTest.package/SmTSelectPackageBrowser.class/instance/addItems.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 @@ | ||
accessing | ||
addItems | ||
toSelectModel selectedItems | ||
ifNotNil: [ :items | | ||
selectedModel items: (self sort: selectedModel listItems withAll: items). | ||
toSelectModel items: (self sort: toSelectModel listItems withoutAll: items) ]. | ||
toSelectModel updateList. | ||
selectedModel updateList |
6 changes: 6 additions & 0 deletions
6
SmartTest.package/SmTSelectPackageBrowser.class/instance/createTestSuiteFrom..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 @@ | ||
api | ||
createTestSuiteFrom: listItem | ||
| testSuite | | ||
testSuite := TestSuite new. | ||
testSuite addTests: ((listItem flatCollect: #methods) select: #isTestMethod thenCollect: #asTestCase). | ||
^ testSuite |
13 changes: 13 additions & 0 deletions
13
SmartTest.package/SmTSelectPackageBrowser.class/instance/initialize.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,13 @@ | ||
initialization | ||
initialize | ||
| wrappingBlock testPackage | | ||
super initialize. | ||
toSelectModel := self instantiate: ListPresenter. | ||
selectedModel := self instantiate: ListPresenter. | ||
selectedModel beMultipleSelection. | ||
toSelectModel beMultipleSelection. | ||
wrappingBlock := [ :package | package packageName ]. | ||
toSelectModel displayBlock: wrappingBlock. | ||
selectedModel displayBlock: wrappingBlock. | ||
testPackage := MCWorkingCopy allManagers reject: [ :package | '*Test*' match: package packageName ]. | ||
toSelectModel items: (self sort: (toSelectModel listItems \ testPackage)) |
9 changes: 9 additions & 0 deletions
9
SmartTest.package/SmTSelectPackageBrowser.class/instance/nextAction.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 @@ | ||
api | ||
nextAction | ||
| past testSuite | | ||
testSuite := self createTestSuiteFrom: selectedModel listItems. | ||
past := smartFinder smtFinder. | ||
smartFinder smtFinder: SmTReflectivityTestFinderStrategy new. | ||
smartFinder buildCacheFromTestSuite: testSuite. | ||
smartFinder smtFinder: past. | ||
self delete |
8 changes: 8 additions & 0 deletions
8
SmartTest.package/SmTSelectPackageBrowser.class/instance/removeAllItems.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 @@ | ||
accessing | ||
removeAllItems | ||
| tmp | | ||
tmp := self sort: toSelectModel listItems withAll: selectedModel listItems. | ||
toSelectModel items: tmp. | ||
selectedModel items: #(). | ||
toSelectModel updateList. | ||
selectedModel updateList |
8 changes: 8 additions & 0 deletions
8
SmartTest.package/SmTSelectPackageBrowser.class/instance/removeItems.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 @@ | ||
accessing | ||
removeItems | ||
selectedModel selectedItems | ||
ifNotNil: [ :items | | ||
toSelectModel items: (self sort: toSelectModel listItems withAll: items). | ||
selectedModel items: (self sort: selectedModel listItems withoutAll: items) ]. | ||
toSelectModel updateList. | ||
selectedModel updateList |
Oops, something went wrong.