-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge latest changes from 'development'
- Loading branch information
Showing
136 changed files
with
2,420 additions
and
1,303 deletions.
There are no files selected for viewing
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,27 @@ | ||
name: Build | ||
|
||
on: [push,pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
smalltalk: [ Pharo64-7.0, Pharo64-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11 ] | ||
name: ${{ matrix.smalltalk }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Smalltalk CI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- name: Load Image and Run Tests | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/.unit-tests.ston | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
timeout-minutes: 15 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: ${{matrix.os}}-${{matrix.smalltalk}} | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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,16 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Artefact', | ||
#directory : '../src', | ||
#load : [ 'CI' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#coverage : { | ||
#packages : [ 'Artefact*' ], | ||
#format: #lcov | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/Artefact-Tests/PDFColorTest.class.st → ...Artefact-Core-Tests/PDFColorTest.class.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Class { | ||
#name : #PDFDemosTest, | ||
#superclass : #TestCase, | ||
#category : #'Artefact-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #tests } | ||
PDFDemosTest >> testAllDemos [ | ||
|
||
| demos | | ||
demos := PDFDemos new. | ||
PDFDemos methods do: [ :m | | ||
PDFDemos | ||
streamNamed: 'allDemos.pdf' | ||
do: [ :stream | demos perform: m selector with: stream ] ] | ||
] |
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
16 changes: 8 additions & 8 deletions
16
src/Artefact-Tests/PDFElementTest.class.st → ...tefact-Core-Tests/PDFElementTest.class.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,40 +1,40 @@ | ||
Class { | ||
#name : #PDFElementTest, | ||
#superclass : #TestCase, | ||
#category : #'Artefact-Tests-Elements' | ||
#category : #'Artefact-Core-Tests-Elements' | ||
} | ||
|
||
{ #category : #'tests orientation' } | ||
{ #category : #'tests - orientation' } | ||
PDFElementTest >> testOrientationBottomLeft [ | ||
self assert: (PDFElement determineOrientation: -20 mm @ 10mm) equals: #bottomLeft | ||
] | ||
|
||
{ #category : #'tests orientation' } | ||
{ #category : #'tests - orientation' } | ||
PDFElementTest >> testOrientationBottomRight [ | ||
self assert: (PDFElement determineOrientation: 20 mm @ 10mm) equals: #bottomRight | ||
] | ||
|
||
{ #category : #'tests orientation' } | ||
{ #category : #'tests - orientation' } | ||
PDFElementTest >> testOrientationDefaultCase [ | ||
self assert: (PDFElement determineOrientation: 0 mm @ 0 mm) equals: #bottomRight | ||
] | ||
|
||
{ #category : #'tests orientation' } | ||
{ #category : #'tests - orientation' } | ||
PDFElementTest >> testOrientationTopLeft [ | ||
self assert: (PDFElement determineOrientation: -20 mm @ -10mm) equals: #topLeft | ||
] | ||
|
||
{ #category : #'tests orientation' } | ||
{ #category : #'tests - orientation' } | ||
PDFElementTest >> testOrientationTopRight [ | ||
self assert: (PDFElement determineOrientation: 20 mm @ -10mm) equals: #topRight | ||
] | ||
|
||
{ #category : #tests } | ||
PDFElementTest >> testRequiredAttributesIsFilled [ | ||
self shouldnt: [(PDFDummyLayout new from: 10mm@5mm; dimension: 5cm@12cm) checkAttributes] raise: ArtefactUndefinedAttribute | ||
self shouldnt: [(PDFDummyLayout new from: 10mm@5mm; dimension: 5cm@12cm) checkAttributes] raise: ArtefactUndefinedAttribute | ||
] | ||
|
||
{ #category : #tests } | ||
PDFElementTest >> testRequiredAttributesIsNotFilled [ | ||
self should: [PDFDummyLayout new checkAttributes] raise: ArtefactUndefinedAttribute | ||
self should: [PDFDummyLayout new checkAttributes] raise: ArtefactUndefinedAttribute | ||
] |
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
Oops, something went wrong.