Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: run all test packages #690

Merged
merged 3 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .ci.ston
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@ SmalltalkCISpec {
#directory : 'src',
#platforms : [ #pharo ]
}
],
#testing : {
#exclude : {
#packages : [ 'Bloc-Examples.*', 'Bloc-Layout-Examples.*', 'Bloc-Text-Examples.*' ]
}
}
]
}
1 change: 1 addition & 0 deletions src/Bloc-Examples/BlElementBoundsByScripterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ BlElementBoundsByScripterTest >> testBoundsInSpace2 [

{ #category : #tests }
BlElementBoundsByScripterTest >> testBoundsInSpace3 [
<expectedFailure>

| aScripter |
aScripter := self testBoundsInSpace2.
Expand Down
60 changes: 36 additions & 24 deletions src/Bloc-Text-Examples/BlTextIteratorExamplesTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ Class {
#category : #'Bloc-Text-Examples-Model'
}

{ #category : #'instance creation' }
BlTextIteratorExamplesTest >> newTextSizeTenAttribute [

^ BlFontSizeAttribute size: 10
]

{ #category : #'instance creation' }
BlTextIteratorExamplesTest >> testAttributed_end [

<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 11 to: 15) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 11 to: 15) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -29,7 +33,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_attributed_end_at_1 [
anIterator := self testAttributed_end.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -51,7 +56,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_span_any_at_1 [
anIterator := self testAttributed_end.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -73,7 +79,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_span_any_at_10 [
anIterator := self testAttributed_end_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -93,10 +100,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle [
<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 6 to: 10) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 6 to: 10) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -112,7 +117,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_attributed_end_at_1 [
anIterator := self testAttributed_middle.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -134,7 +140,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_attributed_end_at_10 [
anIterator := self testAttributed_middle_next_attributed_end_at_1.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -156,7 +163,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_1 [
anIterator := self testAttributed_middle.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -178,7 +186,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_10 [
anIterator := self testAttributed_middle_next_span_any_at_5.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -200,7 +209,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_5 [
anIterator := self testAttributed_middle_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -220,10 +230,8 @@ BlTextIteratorExamplesTest >> testAttributed_start [
<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 1 to: 5) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 1 to: 5) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -239,7 +247,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_attributed_end_at_1 [
anIterator := self testAttributed_start.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -261,7 +270,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_attributed_end_at_5 [
anIterator := self testAttributed_start_next_attributed_end_at_1.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -283,7 +293,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_span_any_at_1 [
anIterator := self testAttributed_start.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -305,7 +316,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_span_any_at_5 [
anIterator := self testAttributed_start_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand Down