Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

A trip down the rabbit hole to enable colors from sbt #54

Merged
merged 3 commits into from
Jun 14, 2016

Conversation

szeiger
Copy link
Contributor

@szeiger szeiger commented Feb 19, 2016

I set out (and succeeded) to enable color output when running from sbt. Along the way I refactored the outer layers of partest (basically everything above SuiteRunner) to remove global mutable state and make it more manageable.

@szeiger
Copy link
Contributor Author

szeiger commented Feb 19, 2016

Builds failed because of binary compatibility checks, as expected. This is obviously not binary compatible but shouldn't touch the parts of partest needed by partest-extras.

@SethTisue
Copy link
Member

can you suggest a reviewer? I don't know this codebase.

@szeiger
Copy link
Contributor Author

szeiger commented Feb 25, 2016

@adriaanm perhaps? He must have touched at least parts of this code while adding sbt support

@adriaanm adriaanm self-assigned this Mar 2, 2016
@som-snytt
Copy link
Contributor

How I miss the coleurs.

@adriaanm
Copy link
Contributor

Let's merge this and bootstrap a new version of partest after M5. 🌈

szeiger added 3 commits June 8, 2016 16:41
- Refactored for less mutability
- Narrowed scopes
- Removed obsolete code
There was a choice for “many”, “some” or “none” but no way to
set it. The color choices were impractical anyway (bold black
foreground on standard background). Now the colors for terse
output provide proper visibility and are enabled together with
colored output.
@szeiger szeiger force-pushed the wip/config-cleanup branch from e3e3a4a to c0ec7fa Compare June 8, 2016 14:43
@szeiger
Copy link
Contributor Author

szeiger commented Jun 8, 2016

Rebased. Rebasing on top of #63 was a PITA. @som-snytt, can you take a look to make sure I didn't break anything?

@@ -6,12 +6,15 @@
** |/ **
\* */

package scala.tools.partest
package nest
package scala.tools.partest.sbt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

who is using this class? can we easily just move it and update its users simultaneously?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used by PartestTask in the same package. This used to be in partest-interface before we moved it into partest itself.

@lrytz
Copy link
Member

lrytz commented Jun 8, 2016

LGTM otherwise. did you do some testing locally? (i didn't)

@szeiger
Copy link
Contributor Author

szeiger commented Jun 8, 2016

@lrytz I'm pretty sure tested it locally when I wrote it. I don't remember exactly what I tested because it's been a while.

@som-snytt
Copy link
Contributor

@szeiger Sorry about the conflict. It would have been easier for me to rebase.

I took a quick look, but I won't have more time until end of day. I'll run it later, one way or another.

@szeiger szeiger merged commit 8b87fab into scala:master Jun 14, 2016
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
A trip down the rabbit hole to enable colors from sbt
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
A trip down the rabbit hole to enable colors from sbt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants