Skip to content
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

aSCITestRunnerResult instead of test case when viewing test results written to stdout and GemStone? #246

Closed
dalehenrich opened this issue Dec 8, 2016 · 5 comments
Labels

Comments

@dalehenrich
Copy link
Collaborator

It seems the last time I ran a local GemStone test, we were getting a test case that displayed it's selector not the following:

TDShellFindCommandTests
 ✓ aSCITestRunnerResult (1448ms)
 ✓ aSCITestRunnerResult (2609ms)
 ✓ aSCITestRunnerResult (1479ms)
 ✓ aSCITestRunnerResult (2376ms)
 ✓ aSCITestRunnerResult (1077ms)
 ✓ aSCITestRunnerResult (46ms)
 ✓ aSCITestRunnerResult (2124ms)
 ✓ aSCITestRunnerResult (2655ms)
 ✓ aSCITestRunnerResult (895ms)
 ✓ aSCITestRunnerResult (13167ms)
 ✓ aSCITestRunnerResult (4199ms)
 ✓ aSCITestRunnerResult (43ms)
 ✓ aSCITestRunnerResult (32ms)
 ✓ aSCITestRunnerResult (24ms)

At this point I have no idea whether this is a general problem or restricted to GemStone ...

@dalehenrich
Copy link
Collaborator Author

The problem here appears to be that SCITestRunnerResult implements #prinString, but #title (used by ansiTitle for the SCITestReporterStdout) sends the message #asString. In GemStone, at least, #asString does not call #printString.... presumably #printString should be used in #title or (better) implement #asString ... since that appears to be the selector that is normally used ...

@dalehenrich dalehenrich added the bug label Dec 8, 2016
@dalehenrich
Copy link
Collaborator Author

Travis output is wrong as well ... have to expand the test result fold to see that the output is incorrect

@dalehenrich
Copy link
Collaborator Author

This problem showed up in the SmalltalkCI test, but noone bothered to actually look at the GemStone test output ... hard to write a unit test when you are changing the way test results output appears --- need to actually look at the results

@dalehenrich
Copy link
Collaborator Author

GemStone #printOn: calls #asString. Default #asString is the class name and default printString calls #printOn:

Pharo #printOn: is the class name. Default #asString calls #printString and default #printString calls #printOn:.

Ideally #printOn:, printString and #asString would return the same thing.

For Pharo implementing #printOn: unifies all three methods and for GemStone #asString unifies all three methods, therefore for portability Between GemStone and Pharo it is necessary to implement both #printOn: and #asString ...

I haven't looked at Squeak ...

dalehenrich added a commit that referenced this issue Dec 8, 2016
@fniephaus
Copy link
Member

Yes, I only realized that when I looked at the builds you mentioned yesterday.
I thought I had added some higher level tests for that but that's not the case I guess.
Will leave this open until we have some tests...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants