Skip to content

Commit af8d2db

Browse files
committed
Improve end-to-end test suite
* test branch creation, deletion, and switching * test various merging configurations (only on code for now) * test commit dialog corner cases (no commit message, no changes to commit) * add ability to find Text, so the active branch (bold) can be distinguished from others * refactor to avoid code duplciation * fix gitSInteractionPosition for indented tree morph items
1 parent 4452d9a commit af8d2db

File tree

84 files changed

+584
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+584
-111
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
checkMethod: sourceString
3+
self checkMethod: sourceString category: self defaultMethodCategory class: self defaultClass.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
checkNoMethod: selectorSymbol
3+
self checkNoMethod: selectorSymbol class: self defaultClass.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
operations
2+
commitWithMessage: aString
3+
self commitWithMessage: aString checking: [].
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
compileMethod: sourceString
3+
self compileMethod: sourceString category: self defaultMethodCategory class: self defaultClass.

src/GitS-Tests.package/GSEndToEndTest.class/instance/declareClass.instVars..st renamed to src/GitS-Tests.package/GSEndToEndTest.class/instance/declareClass..st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
data
2-
declareClass: aSymbol instVars: aString
2+
declareClass: aSymbol
33
Object subclass: aSymbol
4-
instanceVariableNames: aString
4+
instanceVariableNames: ''
55
classVariableNames: ''
66
poolDictionaries: ''
77
category: self classCategory.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
declareClass
3+
self declareClass: self defaultClass.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
defaultClass
3+
^ #GSDummy
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data
2+
defaultMethodCategory
3+
^ 'testing'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
answers
2+
do: aBlock supplyingAnswer: aPairCollection
3+
self do: aBlock supplyingAnswers: {aPairCollection}.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
answers
2+
do: aBlock supplyingAnswers: aCollection
3+
| remaining |
4+
remaining := aCollection.
5+
aBlock on: ProvideAnswerNotification do: [:notification | | caption |
6+
caption := notification messageText withSeparatorsCompacted.
7+
remaining
8+
detect: [:each | each first match: caption]
9+
ifFound: [:answer | remaining := remaining copyWithout: answer. notification resume: answer second]
10+
ifNone: [notification pass]].
11+
self assert: remaining isEmpty description: ('Expected interactions matching {1}' gitSFormat: {remaining}).

0 commit comments

Comments
 (0)