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

Make drtests spec2 compatible #11859

Merged

Conversation

estebanlm
Copy link
Member

I made a pass to adapt DrTests to latest Spec2.
There are also some enhancements on how information is presented (some coloring and autoexpand of nodes)
is in general usable now :)

@MarcusDenker
Copy link
Member

MetacelloNotification: Loading -> DrTests-tonel.1 --- tonel:///builds/workspace/est_and_branch_Pipeline_PR-11859/64/src --- cache
Error: Package *DrTests depends on the following classes:
  StPharoStyleContributor
  StPresenter

@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Nov 7, 2022
@Ducasse
Copy link
Member

Ducasse commented Nov 7, 2022

Cool!!!
Could we have the same for the rewrite tool because we need it too. https://github.com/jordanmontt/RewriteToolsSet
I would like to have it in NewTools (we could start to have it as an optional projet) and the microdown document browser too.

GitHub
A set of tools that allows to do complex searches and code transformations using the refactoring engine in Pharo! - GitHub - jordanmontt/RewriteToolsSet: A set of tools that allows to do complex s...

@Ducasse
Copy link
Member

Ducasse commented Nov 7, 2022

I was looking at the way you cover color into style and I have two questions:

  • how do we declare the style
  • and in initializeItemsListAndLabel the theme is using a color. Does it use the styler?
initializeItemsListAndLabel [

 	itemsList := self newFilterableListPresenter.
 	itemsList
 		displayIcon: [ :aClass | self iconNamed: aClass systemIconName  ];
 		displayColor: [ :aClass | (self packagesSelected includes: aClass package)
 		displayColor: [ :aClass | 
 			(self packagesSelected includes: aClass package)
 				ifTrue: [ self theme textColor ]
 				ifFalse: [ self theme classExtensionColor ] ]

@Ducasse
Copy link
Member

Ducasse commented Nov 7, 2022

DTStyleContributor ;) for the first question.

@Ducasse
Copy link
Member

Ducasse commented Nov 7, 2022

Does it manage that an expanded node stays expanded?
Because this would be super cool.

@estebanlm
Copy link
Member Author

Does it manage that an expanded node stays expanded? Because this would be super cool.

I did just few modifications. I am not convinced about the tree as a way to show results but right now I let it like that, as my times are limited.
What I did is:

  • errors and failures nodes are expanded by default.
  • errors, failures and passing nodes are show with colors (in case there are results).

Like this:

image

Still not great (and we should keep expanded nodes opened from run to run too, in another step)

@estebanlm
Copy link
Member Author

estebanlm commented Nov 7, 2022

Cool!!! Could we have the same for the rewrite tool because we need it too. https://github.com/jordanmontt/RewriteToolsSet I would like to have it in NewTools (we could start to have it as an optional projet) and the microdown document browser too.

GitHub**GitHub - jordanmontt/RewriteToolsSet: A set of tools that allows to do complex searches and code transformations using the refactoring engine in Pharo!**A set of tools that allows to do complex searches and code transformations using the refactoring engine in Pharo! - GitHub - jordanmontt/RewriteToolsSet: A set of tools that allows to do complex s...

sure, I will add it to my "for-when-I-m-bored" todo list ;)

GitHub
A set of tools that allows to do complex searches and code transformations using the refactoring engine in Pharo! - GitHub - jordanmontt/RewriteToolsSet: A set of tools that allows to do complex s...

@estebanlm
Copy link
Member Author

I was looking at the way you cover color into style and I have two questions:

* how do we declare the style

* and in initializeItemsListAndLabel the theme is using a color. Does it use the styler?
initializeItemsListAndLabel [

 	itemsList := self newFilterableListPresenter.
 	itemsList
 		displayIcon: [ :aClass | self iconNamed: aClass systemIconName  ];
 		displayColor: [ :aClass | (self packagesSelected includes: aClass package)
 		displayColor: [ :aClass | 
 			(self packagesSelected includes: aClass package)
 				ifTrue: [ self theme textColor ]
 				ifFalse: [ self theme classExtensionColor ] ]

nope, this is an inconsistency in spec I want to work on next (but believe it or not, is not so easy).

@estebanlm
Copy link
Member Author

DTStyleContributor ;) for the first question.

this is a way to add styles to the stylesheet of StPharoApplication, because otherwise we create an undesirable dependence.

@Ducasse
Copy link
Member

Ducasse commented Nov 7, 2022

Ok cool. It is already an improvement. About the failure color orange would be better.

@MarcusDenker MarcusDenker removed the Status: Need more work The issue is nearly ready. Waiting some last bits. label Nov 8, 2022
@Ducasse Ducasse merged commit fe018e2 into pharo-project:Pharo11 Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants