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

colors don't seem to be working? #9

Open
bvasilchik opened this issue Apr 9, 2015 · 12 comments
Open

colors don't seem to be working? #9

bvasilchik opened this issue Apr 9, 2015 · 12 comments

Comments

@bvasilchik
Copy link

So this seems to be working fine except I don't get any colors? the only thing that I did find in testing is that the inColors option only seems to change the JASMINE STARTING:
I was using another reporter before which I took out because I thought your reporter had more options. I just am curious why the colors aren't working.

inColors: false then you will get this
screen shot 2015-04-09 at 12 45 34 pm
inColors: true then you will get this
screen shot 2015-04-09 at 12 45 05 pm

var TestsReporter = require('jasmine2-reporter').Jasmine2Reporter,
options = {
failedAsserts: true,
failedSpec: true,
failuresSummary: true,
hideEmptySummary: false,
inColors: true,
indent: '\t',
namesInColors: true,
passedSpec: true,
pendingSpec: true,
pendingSuite: true,
specDuration: true,
stacktrace: true,
suiteDuration: true,
summary: true,
colors: {
  failed: 'red',
  passed: 'green',
  pending: 'yellow',
  suite: 'cyan',
  system: 'grey'
},
symbols: {
  failed: '✗  '.strikethrough,
  passed: '✓  '.strikethrough,
  pending: '~  '.strikethrough,
  suite: '» '.strikethrough
}
};
jasmine.getEnv().addReporter(new TestsReporter(options));
@razvanz
Copy link
Owner

razvanz commented Apr 10, 2015

I will look into it this weekend.

@bvasilchik
Copy link
Author

thank you for your quick reply. If you need any additional information feel
free to message me

On Fri, Apr 10, 2015 at 6:31 AM, Razvan [email protected] wrote:

I will look into it this weekend.


Reply to this email directly or view it on GitHub
#9 (comment)
.

@razvanz
Copy link
Owner

razvanz commented Apr 12, 2015

I tested with the options you specified under NodeJS 0.12.1 and it did displayed the colors. Can you give some more details about how you use it? And some test code?

@bvasilchik
Copy link
Author

So I found out that when using grunt is where the problem occurs if I just
run protractor without grunt I get the colors. here is my Gruntfile.js and
conf.js package.json. I can run any tests and get the same results. for
example this really simple test will give me the no colors. I didn't write
these files originally so I'm not super familiar with the setups. I'm on
protractor 1.8 , haven't updated to 2.0 quite yet because it was giving
some problems.

grunt prot:beta --specs=tests/playground/Barret/examples/googlemaps_spec.js
Looks like this


./node_modules/protractor/bin/protractor conf.js

Looks like this

On Sun, Apr 12, 2015 at 3:54 PM, Razvan [email protected] wrote:

I tested with the options you specified under NodeJS 0.12.1 and it did
displayed the colors. Can you give some more details about how you use it?
And some test code?


Reply to this email directly or view it on GitHub
#9 (comment)
.

@razvanz
Copy link
Owner

razvanz commented Apr 14, 2015

I'll try to look into it when I get some spare time.

@bvasilchik
Copy link
Author

thanks, I appreciate your effort and concern

On Tue, Apr 14, 2015 at 4:04 AM, Razvan [email protected] wrote:

I'll try to look into it when I get some spare time.


Reply to this email directly or view it on GitHub
#9 (comment)
.

@kimurakenshi
Copy link

I have the same problem, When I run protractor from grunt I don't get any colors.
Any help would be appreciated.
Thanks.

@razvanz
Copy link
Owner

razvanz commented Jun 20, 2015

Can you give some more details about the OS platform and grunt version?

@Kartoffelsalat
Copy link

Facing the same problem.

protractor: 2.1.0
jasmine: 2.3.1
jasmine2-reporter: 0.1.1
grunt: 0.4.5
grunt-shell: 1.1.2

 shell: {
    protractor: {
            command: function () {
            return 'protractor "e2e/conf.js"';
        }
    }
}

OS: Windows 7 Professional 64bit

@bvasilchik
Copy link
Author

├── [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

I'm on osx 10.10.2

On Wed, Jun 24, 2015 at 5:15 AM, Kartoffelsalat [email protected]
wrote:

Facing the same problem.

protractor: 2.1.0
jasmine: 2.3.1
jasmine2-reporter: 0.1.1
grunt: 0.4.5
grunt-shell: 1.1.2

shell: {
protractor: {
command: function () {
return 'protractor "e2e/conf.js"';
}
}
}

OS: Windows 7 Professional 64bit


Reply to this email directly or view it on GitHub
#9 (comment)
.

@razvanz
Copy link
Owner

razvanz commented Jun 25, 2015

I'll update the reporter for the new API changes (2.3) and look into the color problem for the specific scenarios. Any input is welcomed.

@razvanz
Copy link
Owner

razvanz commented Jun 9, 2017

It's been a long time 😞 . If it's still relevant, can you check with colors. supportsColor if your environment supports colors?

Seeking someone to take over #19

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

No branches or pull requests

4 participants