#12277 closed defect (bug) (duplicate)
Test-Suite: Cross-Plattform portability: No Color Codes in Windows Shell
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Unit Tests | Version: | |
| Severity: | normal | Keywords: | has-patch tested |
| Cc: | mike@… |
Description
The Windows Shell does not provide any colors. Well to be more precise it does support colors but not the way PHPUnit_TextUI_ResultPrinter handles them.
A fix is to not output color-codes on windows.
Attachments (2)
Change History (12)
- Keywords tested added
Tested: I had run the suite with this patch applied on windows and it worked as intended.
Testsuite Windows Compability Related: #11867
Didn't you wanted to have unit-tests with WP 3.0? This patch would help to get things in order.
They're not milestone-dependent... I'm just clearing the 3.0 report. We have a report now specifically for unit tests.
Right, I found that one: New Trac Report: {37} Needs Unit Tests
- Summary changed from Increase Cross-Plattform portability of the Testsuite: No Color Codes in Windows Shell to Test-Suite: Cross-Plattform portability: No Color Codes in Windows Shell
- Resolution set to duplicate
- Status changed from new to closed
comment:10
mbijon — 6 months ago
- Cc mike@… added
This patch is not valid for disabling color codes in Windows after closing #42, in June 2012.
After June 2012, the fix is now to set colors="false" in the test suite's phpunit.xml. It's simple, a patch isn't really needed, but is attached for reference.

Worked like a charm.