Skip to content

Commit

Permalink
Merge pull request #124 from ba-st/pharo-12
Browse files Browse the repository at this point in the history
Add Pharo 12 support
  • Loading branch information
gcotelli committed May 10, 2024
2 parents 1d073ef + 3e58b5a commit 3a171c8
Show file tree
Hide file tree
Showing 158 changed files with 1,122 additions and 1,175 deletions.
1 change: 1 addition & 0 deletions .github/workflows/loading-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- Pharo64-9.0
- Pharo64-10
- Pharo64-11
- Pharo64-12
load-spec:
- development
- dependent-sunit-extensions
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- Pharo64-9.0
- Pharo64-10
- Pharo64-11
- Pharo64-12
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v4
Expand All @@ -25,7 +26,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
name: Unit-Tests-${{matrix.smalltalk}}
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ adding useful extensions.
[![Pharo 9.0](https://img.shields.io/badge/Pharo-9.0-informational)](https://pharo.org)
[![Pharo 10](https://img.shields.io/badge/Pharo-10-informational)](https://pharo.org)
[![Pharo 11](https://img.shields.io/badge/Pharo-11-informational)](https://pharo.org)
[![Pharo 12](https://img.shields.io/badge/Pharo-12-informational)](https://pharo.org)

[![GS64 3.7.0](https://img.shields.io/badge/GS64-3.7.0-informational)](https://gemtalksystems.com/products/gs64/)
[![GS64 3.7.1](https://img.shields.io/badge/GS64-3.7.1-informational)](https://gemtalksystems.com/products/gs64/)
Expand Down
3 changes: 2 additions & 1 deletion source/.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
#format : #tonel ,
#format : 'tonel',
#version: '3.0',
#convention : 'Rowan'
}
35 changes: 18 additions & 17 deletions source/BaselineOfBuoy/BaselineOfBuoy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Baseline of Buoy
"
Class {
#name : #BaselineOfBuoy,
#superclass : #BaselineOf,
#category : #BaselineOfBuoy
#name : 'BaselineOfBuoy',
#superclass : 'BaselineOf',
#category : 'BaselineOfBuoy',
#package : 'BaselineOfBuoy'
}

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baseline: spec [

<baseline>
Expand Down Expand Up @@ -40,7 +41,7 @@ BaselineOfBuoy >> baseline: spec [

]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineAssertions: spec [

spec
Expand All @@ -56,7 +57,7 @@ BaselineOfBuoy >> baselineAssertions: spec [
group: 'Tests' with: 'Buoy-Assertions-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineChronology: spec [

spec
Expand All @@ -67,7 +68,7 @@ BaselineOfBuoy >> baselineChronology: spec [
group: 'Tests' with: 'Buoy-Chronology-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineCollections: spec [

spec
Expand All @@ -89,7 +90,7 @@ BaselineOfBuoy >> baselineCollections: spec [
group: 'Tests' with: 'Buoy-Collections-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineComparison: spec [

spec
Expand All @@ -105,7 +106,7 @@ BaselineOfBuoy >> baselineComparison: spec [
group: 'Tests' with: 'Buoy-Comparison-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineConditions: spec [

spec
Expand All @@ -126,7 +127,7 @@ BaselineOfBuoy >> baselineConditions: spec [
group: 'Tests' with: 'Buoy-Conditions-Pharo-Extensions-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineDynamicBinding: spec [

spec
Expand All @@ -136,7 +137,7 @@ BaselineOfBuoy >> baselineDynamicBinding: spec [
group: 'Tests' with: 'Buoy-Dynamic-Binding-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineExceptionHandling: spec [

spec
Expand All @@ -146,7 +147,7 @@ BaselineOfBuoy >> baselineExceptionHandling: spec [
group: 'Tests' with: 'Buoy-Exception-Handling-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineGS64Development: spec [

spec
Expand Down Expand Up @@ -174,7 +175,7 @@ BaselineOfBuoy >> baselineGS64Development: spec [
group: 'GS64-Development' with: 'Buoy-Chronology-GS64-Extensions'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineMath: spec [

spec
Expand All @@ -196,7 +197,7 @@ BaselineOfBuoy >> baselineMath: spec [
group: 'Tests' with: 'Buoy-Math-Pharo-Extensions-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineMetaprogramming: spec [

spec
Expand All @@ -215,7 +216,7 @@ BaselineOfBuoy >> baselineMetaprogramming: spec [
group: 'Tests' with: 'Buoy-Metaprogramming-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineSUnit: spec [

spec
Expand All @@ -227,15 +228,15 @@ BaselineOfBuoy >> baselineSUnit: spec [
group: 'Tests' with: 'Buoy-SUnit-Tests'
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBuoy >> baselineTools: spec [

spec
package: 'Buoy-Development-Tools' with: [ spec requires: 'Deployment' ];
group: 'Tools' with: #('Buoy-Development-Tools' 'Dependent-SUnit-Extensions')
]

{ #category : #accessing }
{ #category : 'accessing' }
BaselineOfBuoy >> projectClass [

^ MetacelloCypressBaselineProject
Expand Down
2 changes: 1 addition & 1 deletion source/BaselineOfBuoy/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BaselineOfBuoy }
Package { #name : 'BaselineOfBuoy' }
8 changes: 4 additions & 4 deletions source/Buoy-Assertions-Extensions/Error.extension.st
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Extension { #name : #Error }
Extension { #name : 'Error' }

{ #category : #'*Buoy-Assertions-Extensions' }
{ #category : '*Buoy-Assertions-Extensions' }
Error >> failures [

^ tag
]

{ #category : #'*Buoy-Assertions-Extensions' }
{ #category : '*Buoy-Assertions-Extensions' }
Error class >> signal: aFailureExplanation [

^ self new
tag: {aFailureExplanation};
signal: aFailureExplanation
]

{ #category : #'*Buoy-Assertions-Extensions' }
{ #category : '*Buoy-Assertions-Extensions' }
Error class >> signalAll: failureExplanations [

^ self new
Expand Down
2 changes: 1 addition & 1 deletion source/Buoy-Assertions-Extensions/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #'Buoy-Assertions-Extensions' }
Package { #name : 'Buoy-Assertions-Extensions' }
31 changes: 16 additions & 15 deletions source/Buoy-Assertions-Tests/AssertionCheckerBuilderTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
I'm a test case for Assertion Checker Builder
"
Class {
#name : #AssertionCheckerBuilderTest,
#superclass : #TestCase,
#category : #'Buoy-Assertions-Tests'
#name : 'AssertionCheckerBuilderTest',
#superclass : 'TestCase',
#category : 'Buoy-Assertions-Tests',
#package : 'Buoy-Assertions-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testConditionalChecking [

| explanation rowCount |
Expand All @@ -33,7 +34,7 @@ AssertionCheckerBuilderTest >> testConditionalChecking [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testConditionalCheckingWhenFirstConditionFails [

| explanation rowCount |
Expand All @@ -59,7 +60,7 @@ AssertionCheckerBuilderTest >> testConditionalCheckingWhenFirstConditionFails [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testFailFast [

| mathFailureExplanation |
Expand All @@ -85,7 +86,7 @@ AssertionCheckerBuilderTest >> testFailFast [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testFailFastConfiguringErrorToRaise [

| mathFailureExplanation |
Expand Down Expand Up @@ -115,7 +116,7 @@ AssertionCheckerBuilderTest >> testFailFastConfiguringErrorToRaise [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testFailFastInConditional [

| mathFailureExplanation |
Expand Down Expand Up @@ -144,7 +145,7 @@ AssertionCheckerBuilderTest >> testFailFastInConditional [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testFailFastPassingSomeConditions [

| failureExplanation |
Expand All @@ -170,7 +171,7 @@ AssertionCheckerBuilderTest >> testFailFastPassingSomeConditions [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testSeveralConditionsButOnlyOneFailed [

| mathFailureExplanation |
Expand All @@ -193,7 +194,7 @@ AssertionCheckerBuilderTest >> testSeveralConditionsButOnlyOneFailed [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testSeveralConditionsButOnlyOneFailedConfiguringErrorToRaise [

| mathFailureExplanation |
Expand All @@ -219,7 +220,7 @@ AssertionCheckerBuilderTest >> testSeveralConditionsButOnlyOneFailedConfiguringE
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testSeveralConditionsFailed [

| mathFailureExplanation collectionSizeFailureExplanation |
Expand All @@ -245,7 +246,7 @@ AssertionCheckerBuilderTest >> testSeveralConditionsFailed [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testSingleConditionFailure [

| explanation |
Expand All @@ -262,13 +263,13 @@ AssertionCheckerBuilderTest >> testSingleConditionFailure [
]
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testWithoutChecks [

self shouldnt: [ AssertionChecker check: [ :asserter | ] ] raise: AssertionFailed
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerBuilderTest >> testWithoutFailures [

self
Expand Down
19 changes: 10 additions & 9 deletions source/Buoy-Assertions-Tests/AssertionCheckerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
I'm a test case for Assertion Checker
"
Class {
#name : #AssertionCheckerTest,
#superclass : #TestCase,
#category : 'Buoy-Assertions-Tests'
#name : 'AssertionCheckerTest',
#superclass : 'TestCase',
#category : 'Buoy-Assertions-Tests',
#package : 'Buoy-Assertions-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testEnforceOneFactFailing [

| explanation |
Expand All @@ -16,7 +17,7 @@ AssertionCheckerTest >> testEnforceOneFactFailing [
self should: [ AssertionChecker enforce: [ false ] because: explanation ] raise: AssertionFailed withMessageText: explanation
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testEnforceOneFactFailingRaisingError [

| explanation |
Expand All @@ -26,7 +27,7 @@ AssertionCheckerTest >> testEnforceOneFactFailingRaisingError [
self should: [ AssertionChecker enforce: [ false ] because: explanation raising: Error ] raise: Error withMessageText: explanation
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testEnforceOneFactFailingRaisingNonDefaultException [

| explanation |
Expand All @@ -39,15 +40,15 @@ AssertionCheckerTest >> testEnforceOneFactFailingRaisingNonDefaultException [
withMessageText: explanation
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testEnforceOneFactNotFailing [

self
shouldnt: [ AssertionChecker enforce: [ true ] because: [ self fail ] ] raise: AssertionFailed;
shouldnt: [ AssertionChecker enforce: [ true ] because: [ self fail ] raising: InstanceCreationFailed ] raise: InstanceCreationFailed
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testRefuseOneFactFailing [

| explanation |
Expand All @@ -56,7 +57,7 @@ AssertionCheckerTest >> testRefuseOneFactFailing [
self should: [ AssertionChecker refuse: [ true ] because: explanation ] raise: AssertionFailed withMessageText: explanation
]

{ #category : #tests }
{ #category : 'tests' }
AssertionCheckerTest >> testRefuseOneFactNotFailing [

self
Expand Down
Loading

0 comments on commit 3a171c8

Please sign in to comment.