Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5f69874
Delete TDSLogger class, change trait to TLogger from ExperimentModel …
Julesboul Oct 27, 2025
99a82c7
fix(DebuggingSpy-Tests): disable useless tests and fix tests to corre…
Julesboul Nov 4, 2025
1534d4a
fix(DebuggingSpy-Tests): fix tesInstrumentStPlayground by closing it …
Julesboul Nov 4, 2025
fc52283
fix(DebuggingSpy-Tests): fix DSSpyTest by adding new reccorded events
Julesboul Nov 4, 2025
e4d3ac1
Use the new class of StInspection
Julesboul Nov 6, 2025
bb44b05
Update dsspy.yaml
Julesboul Nov 12, 2025
a174172
Update dsspy.yaml
Julesboul Nov 12, 2025
ab50983
Update .smalltalk.ston
Julesboul Nov 24, 2025
b860117
Update .smalltalk.ston
Julesboul Nov 24, 2025
70a8fd3
Update .smalltalk.ston
Julesboul Nov 24, 2025
73485d2
Update .smalltalk.ston
Julesboul Nov 28, 2025
7ca401c
Update dsspy.yaml
Julesboul Nov 28, 2025
dd6c0a1
Update dsspy.yaml
Julesboul Nov 28, 2025
4c18fb9
Update dsspy.yaml
Julesboul Nov 28, 2025
f6f132e
Update dsspy.yaml
Julesboul Nov 28, 2025
269cd71
Update .smalltalk.ston
Julesboul Nov 28, 2025
b86ac15
Update .smalltalk.ston
Julesboul Nov 28, 2025
41a4c3b
Update .smalltalk.ston
Julesboul Nov 28, 2025
946c173
Update .smalltalk.ston
Julesboul Nov 28, 2025
7436c00
Update .smalltalk.ston
Julesboul Nov 28, 2025
6aa74ee
Update dsspy.yaml
Julesboul Nov 28, 2025
f04e9b9
Update dsspy.yaml
Julesboul Nov 28, 2025
7d71f7f
Update dsspy.yaml
Julesboul Nov 28, 2025
3a623fa
Update .smalltalk.ston
Julesboul Dec 1, 2025
b62008f
Update dsspy.yaml
Julesboul Dec 1, 2025
e39406a
Update DSSTONFileLogger.class.st
Julesboul Dec 17, 2025
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
12 changes: 3 additions & 9 deletions .github/workflows/dsspy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: ${{ matrix.smalltalk }}-DebuggingSpy
strategy:
matrix:
smalltalk: [ Pharo64-12 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
smalltalk-version: Pharo64-12
- run: smalltalkci -s Pharo64-12
shell: bash
timeout-minutes: 15
16 changes: 11 additions & 5 deletions BaselineOfDebuggingSpy/BaselineOfDebuggingSpy.class.st
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
Class {
#name : #BaselineOfDebuggingSpy,
#superclass : #BaselineOf,
#category : #BaselineOfDebuggingSpy
#name : 'BaselineOfDebuggingSpy',
#superclass : 'BaselineOf',
#category : 'BaselineOfDebuggingSpy',
#package : 'BaselineOfDebuggingSpy'
}

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

<baseline>

spec baseline: 'ExperimentModel' with: [
spec repository:
'github://Pharo-XP-Tools/ExperimentModel:main' ].

spec for: #common do: [
spec postLoadDoIt: #postloadAction.
spec package: 'DebuggingSpy'.
spec package: 'DebuggingSpy-Tests' ]
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfDebuggingSpy >> postloadAction [
DSSpy handlingError: false
]
2 changes: 1 addition & 1 deletion BaselineOfDebuggingSpy/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BaselineOfDebuggingSpy }
Package { #name : 'BaselineOfDebuggingSpy' }
12 changes: 4 additions & 8 deletions DebuggingSpy-Tests/DSSpyBrowserTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ Class {
#tag : 'Tests - Scenarios'
}

{ #category : 'running' }
DSSpyBrowserTest >> setUp [
super setUp.


]

{ #category : 'tests - browser' }
DSSpyBrowserTest >> testBrowserRUN1 [
"
|log history openedPlaygrounds playgroundsAction openedBrowser browserEntering|
log := DSTestingScenariosFileLocator browserScenario001.
history := DSRecordHistory fromSTON: log.
Expand All @@ -26,7 +20,9 @@ DSSpyBrowserTest >> testBrowserRUN1 [
self assert: openedPlaygrounds size equals: 1.
self assert: playgroundsAction notEmpty.
self assert: history mergedWindowJumps first type equals: 'Playground'.
self assert: history mergedWindowJumps last type equals: 'Browser'.
self assert: history mergedWindowJumps last type equals: 'Browser'. "

self flag: #TODO


]
17 changes: 10 additions & 7 deletions DebuggingSpy-Tests/DSSpyInstrumenterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ DSSpyInstrumenterTest >> testInstrumentRubEditorCopySelection [

| rubEditor registerClipboardText |
modifiedClass := RubSmalltalkEditor.
modifiedMethodSource := (RubSmalltalkEditor >> #doIt) sourceCode.
modifiedMethodSource := (RubSmalltalkEditor >> #copySelection) sourceCode.
instrumenter instrumentRubSmalltalkEditorCopySelection.

registerClipboardText := DSSpy recordClipboardContent.
Expand Down Expand Up @@ -1017,7 +1017,7 @@ DSSpyInstrumenterTest >> testInstrumentRubEditorPaste [

| rubEditor registerClipboardText |
modifiedClass := RubSmalltalkEditor.
modifiedMethodSource := (RubSmalltalkEditor >> #doIt) sourceCode.
modifiedMethodSource := (RubSmalltalkEditor >> #paste) sourceCode.
instrumenter instrumentRubSmalltalkEditorPaste.
registerClipboardText := DSSpy recordClipboardContent.
DSSpy recordClipboardContent: true.
Expand Down Expand Up @@ -1269,17 +1269,20 @@ DSSpyInstrumenterTest >> testInstrumentSpCodePrintIt [

{ #category : 'tests - playground' }
DSSpyInstrumenterTest >> testInstrumentStPlayground [
|playground|

| playground |
modifiedClass := StPlaygroundPresenter class.
modifiedMethodSource := (StPlaygroundPresenter class >> #open) sourceCode.
modifiedMethodSource := (StPlaygroundPresenter class >> #open)
sourceCode.
instrumenter instrumentPlaygroundCode.
playground := StPlaygroundPresenter open.

"On opening, the playground generates an opening record"
self assert: self registry size equals: 1.
record := self registry first.
record := self registry first.
self assert: record class identicalTo: DSPlaygroundOpenedRecord.
self assert: record windowId equals: playground window window hash
self assert: record windowId equals: playground window window hash.
playground close.
]

{ #category : 'tests - debugger' }
Expand Down
37 changes: 26 additions & 11 deletions DebuggingSpy-Tests/DSSpyTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,15 @@ DSSpyTest >> testLogOnlyWhenTaskStarted [

{ #category : 'tests - window events' }
DSSpyTest >> testLogWindowActivated [

DSSpy logWindowActivated: self windowEvent.

self assert: self registry size equals: 1.

record := self registry first.

self assert: self registry size equals: 2.

record := self registry first.
self assert: record class identicalTo: DSToolWindowActivatedEventRecord.

record := self registry second.
self assertWindowEventRecordedAs: DSWindowActivatedRecord
]

Expand All @@ -397,10 +401,13 @@ DSSpyTest >> testLogWindowClosed [
DSSpyTest >> testLogWindowOpened [

DSSpy logWindowOpened: self windowEvent.

self assert: self registry size equals: 1.

record := self registry first.

self assert: self registry size equals: 2.

record := self registry first.
self assert: record class identicalTo: DSToolWindowOpenedEventRecord.

record := self registry second.
self assertWindowEventRecordedAs: DSWindowOpenedRecord
]

Expand Down Expand Up @@ -926,15 +933,23 @@ DSSpyTest >> testWindowOpenedListensToWindowActivatedAndClosedEvents [
self windowEvent window announce: (WindowClosed new
window: self windowEvent window;
yourself).
self assert: self registry size equals: 3.
self assert: self registry size equals: 5.

record := self registry first.
self assert: record class identicalTo: DSWindowOpenedRecord.
self assert: record class identicalTo: DSToolWindowOpenedEventRecord.

record := self registry second.
self assert: record class identicalTo: DSWindowOpenedRecord.

record := self registry third.
self
assert: record class
identicalTo: DSToolWindowActivatedEventRecord.

record := self registry at: 4.
self assert: record class identicalTo: DSWindowActivatedRecord.

record := self registry third.
record := self registry at: 5.
self assert: record class identicalTo: DSWindowClosedRecord
]

Expand Down
4 changes: 2 additions & 2 deletions DebuggingSpy/DSSTONFileLogger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ I log DSRecords as STON into files.
Class {
#name : 'DSSTONFileLogger',
#superclass : 'Object',
#traits : 'TDSLogger',
#classTraits : 'TDSLogger classTrait',
#traits : 'TExperimentLogger',
#classTraits : 'TExperimentLogger classTrait',
#instVars : [
'loggingDirectory',
'loggingFilename',
Expand Down
2 changes: 1 addition & 1 deletion DebuggingSpy/DSWindowElementAnnotationPresenter.class.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Class {
#name : 'DSWindowElementAnnotationPresenter',
#superclass : 'StInspection',
#superclass : 'StInspectionPresenter',
#instVars : [
'windowElement',
'indexField',
Expand Down
34 changes: 0 additions & 34 deletions DebuggingSpy/TDSLogger.trait.st

This file was deleted.

Loading