Skip to content

Commit

Permalink
feat: only instantiate test resources once in Pharo
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion committed Sep 17, 2024
1 parent 5c8aa70 commit bb26ccf
Show file tree
Hide file tree
Showing 99 changed files with 391 additions and 626 deletions.
5 changes: 3 additions & 2 deletions repository/SmalltalkCI-Pharo-Core.package/.filetree
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{
"name" : "IceMetacelloPharoPlatform" }
"name" : "IceMetacelloPharoPlatform"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SCIPharoCustomScript",
"pools" : [
],
"super" : "SCICustomScript",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SCIPharoCustomScript",
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
"registerInIceberg"
],
"name" : "SCIPharoMetacelloLoadSpec",
"pools" : [
],
"super" : "SCIMetacelloLoadSpec",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"registerInIceberg"
],
"name" : "SCIPharoMetacelloLoadSpec",
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SCIPharoMonticelloLoadSpec",
"pools" : [
],
"super" : "SCIMonticelloLoadSpec",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SCIPharoMonticelloLoadSpec",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
running
runClasses: aCollectionOfClasses spec: aSCISpec
| suite classes |
suite := TestSuite named: aSCISpec name.
classes := (aCollectionOfClasses
select: [ :each | (each includesBehavior: TestCase) and: [ each isAbstract not ] ])
asSortedCollection: [ :a :b | a name <= b name ].
classes
do: [ :each | suite addTest: each suite ].
^ self runSuite: suite spec: aSCISpec

| suite classes resources |
suite := TestSuite named: aSCISpec name.
classes := (aCollectionOfClasses select: [ :each |
(each includesBehavior: TestCase) and: [
each isAbstract not ] ]) asSortedCollection: [ :a :b |
a name <= b name ].

resources := OrderedCollection new.
classes do: [ :class |
| classSuite |
classSuite := class suite.
resources addAll: (classSuite resources reject: [ :resource |
resources includes: resource ]).
"Reset resources of nested suit. Resources are managed by the outermost suite."
classSuite resources: #( ).
suite addTest: classSuite ].

suite resources: resources.

^ self runSuite: suite spec: aSCISpec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SCIPharoTestRunner",
"pools" : [
],
"super" : "SCITestRunner",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SCIPharoTestRunner",
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SCIPharoTestRunnerPharo10",
"pools" : [
],
"super" : "SCIPharoTestRunnerPharo9",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SCIPharoTestRunnerPharo10",
"type" : "normal"
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"commentStamp" : "",
"super" : "SmalltalkCI",
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [
"StdOut" ],
"commentStamp" : "",
"StdOut"
],
"instvars" : [
"suiteName" ],
"suiteName"
],
"name" : "SmalltalkCIPharo",
"pools" : [
],
"super" : "SmalltalkCI",
"type" : "normal" }
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SmalltalkCIPharo10",
"pools" : [
],
"super" : "SmalltalkCIPharo9",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SmalltalkCIPharo10",
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SmalltalkCIPharo11",
"pools" : [
],
"super" : "SmalltalkCIPharo9",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SmalltalkCIPharo11",
"type" : "normal"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SmalltalkCIPharo12",
"pools" : [
],
"super" : "SmalltalkCIPharo11",
"type" : "normal" }
"category" : "SmalltalkCI-Pharo-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "SmalltalkCIPharo12",
"type" : "normal"
}
Loading

0 comments on commit bb26ccf

Please sign in to comment.