Skip to content

Exception debug string #23

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a9f1dbc
Merge remote-tracking branch 'tesonep/master' into support_for_lifewa…
VincentBlondeau Apr 8, 2021
b944198
Merge remote-tracking branch 'tesonep/master' into support_for_lifewa…
VincentBlondeau Apr 23, 2021
61cbe1d
Merge remote-tracking branch 'tesonep/master' into support_for_lifewa…
VincentBlondeau May 19, 2021
03ac361
Merge remote-tracking branch 'origin/support_for_lifeware_changes' in…
VincentBlondeau May 20, 2021
ee62a3c
Fix baseline to remove the package that does not exists
VincentBlondeau May 21, 2021
539e2a8
Merge branch 'tesonep:master' into support_for_lifeware_changes
Jun 4, 2021
0b1ec22
Merge branch 'tesonep:master' into support_for_lifeware_changes
Jun 29, 2021
616862d
Merge branch 'tesonep:master' into support_for_lifeware_changes
Jul 8, 2021
1c0f1bb
Merge pull request #2 from rolandbernard/lifeware-runner-fixes
Jul 19, 2021
86f0c3c
Merge branch 'automatic-resend' into support_for_lifeware_changes
rolandbernard Jul 26, 2021
e2a1bf7
Added the TWMultipleTestItem to run multiple tests
rolandbernard Jul 26, 2021
98f5094
Fixed bugs in the previous commit
rolandbernard Jul 26, 2021
c592c10
Merge branch 'more-granular-test-items' into support_for_lifeware_cha…
rolandbernard Jul 26, 2021
28d741c
Merge branch 'automatic-resend' into support_for_lifeware_changes
rolandbernard Jul 29, 2021
4711b6a
Merge pull request #3 from lifeware-sa/optimized-on-update-block
Aug 24, 2021
fc7c236
Merge branch 'tesonep:master' into support_for_lifeware_changes
sonibla Oct 22, 2021
7ef397a
Merge branch 'tesonep:master' into support_for_lifeware_changes
sonibla Dec 10, 2021
ea5b735
Better exception handling in TWRunner
sonibla Jan 18, 2022
2b5a2fa
Merge pull request #4 from lifeware-sa/better-exception-handling
sonibla Jan 18, 2022
8cb5687
Add the exception stack as string
sonibla May 19, 2022
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
2 changes: 1 addition & 1 deletion src/BaselineOfTestWorkers/BaselineOfTestWorkers.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ BaselineOfTestWorkers >> baseline: spec [
package: 'TestWorkers-Worker' with: [ spec requires: #('TestWorkers-Connector') ];
package: 'TestWorkers-Client' with: [ spec requires: #('TestWorkers-Connector') ];
package: 'TestWorkers-UI' with: [ spec requires: #('TestWorkers-Client') ];
package: 'TestWorkers-Connector-Tests' with: [ spec requires: #('TestWorkers-Connector') ];

package: 'TestWorkers-Changes-Tests' with: [ spec requires: 'TestWorkers-Changes' ].

"Groups"
Expand Down
39 changes: 29 additions & 10 deletions src/TestWorkers-Client/TWClient.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,31 @@ TWClient >> resetResults [

]

{ #category : #running }
TWClient >> runMultipleTest: aMultipleTest [

| request |

request := TWMultipleTestRequest new
tests: aMultipleTest tests;
yourself.

self runRequest: request


]

{ #category : #running }
TWClient >> runRequest: aTWTestRequest [

requests at: aTWTestRequest uuid asString put: aTWTestRequest.

"RabbitMQ likes to close the connection. This ensures we retry until we are able to connect again."
self ensureNetworkSuccess: [ aTWTestRequest sendOn: connection ]


]

{ #category : #running }
TWClient >> runSingleTest: aSingleTest [

Expand All @@ -132,27 +157,21 @@ TWClient >> runSingleTest: aSingleTest [
testSelector: aSingleTest testSelector;
yourself.

requests at: request uuid asString put: request.

"RabbitMQ likes to close the connection. This ensures we retry until we are able to connect again."
self ensureNetworkSuccess: [ request sendOn: connection ]
self runRequest: request


]

{ #category : #operations }
{ #category : #running }
TWClient >> runTestClass: aTestCase [

| request |

request := TWTestRequest new
request := TWClassTestRequest new
testClassName: aTestCase name;
yourself.

requests at: request uuid asString put: request.

"RabbitMQ likes to close the connection. This ensures we retry until we are able to connect again."
self ensureNetworkSuccess: [ request sendOn: connection ]
self runRequest: request


]
Expand Down
12 changes: 6 additions & 6 deletions src/TestWorkers-Connector/Deprecation.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Deprecation }

{ #category : #'*TestWorkers-Connector' }
Deprecation >> twAnnounce: aTestCase toResult: aTestResult [
self resume
]
Extension { #name : #Deprecation }
{ #category : #'*TestWorkers-Connector' }
Deprecation >> twAnnounce: aTestCase toResult: aTestResult [
self resume
]
28 changes: 14 additions & 14 deletions src/TestWorkers-Connector/DirtyTestError.extension.st
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Extension { #name : #DirtyTestError }

{ #category : #'*TestWorkers-Connector' }
DirtyTestError >> twAnnounce: aTestCase toResult: aTestResult [

executionEnvironment isMainTestProcessFailed ifTrue: [
"The main test process errors are handled by SUnit using same message.
So the actual domain test error is already counted in result"
^self].

"If main test process was completed successfully
we should mark test as failed due to dirty system state"
aTestResult addError: aTestCase with: self
]
Extension { #name : #DirtyTestError }
{ #category : #'*TestWorkers-Connector' }
DirtyTestError >> twAnnounce: aTestCase toResult: aTestResult [
executionEnvironment isMainTestProcessFailed ifTrue: [
"The main test process errors are handled by SUnit using same message.
So the actual domain test error is already counted in result"
^self].
"If main test process was completed successfully
we should mark test as failed due to dirty system state"
aTestResult addError: aTestCase with: self
]
14 changes: 7 additions & 7 deletions src/TestWorkers-Connector/Error.extension.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : #Error }

{ #category : #'*TestWorkers-Connector' }
Error >> twAnnounce: aTestCase toResult: aTestResult [

aTestResult addError: aTestCase with: self
]
Extension { #name : #Error }
{ #category : #'*TestWorkers-Connector' }
Error >> twAnnounce: aTestCase toResult: aTestResult [
aTestResult addError: aTestCase with: self
]
Loading