razvanz / jasmine2-reporter

Jasmine 2.0 reporter.
MIT License
6 stars 6 forks source link

colors don't seem to be working? #9

Open bvasilchik opened 9 years ago

bvasilchik commented 9 years ago

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 commented 9 years ago

I will look into it this weekend.

bvasilchik commented 9 years ago

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 notifications@github.com wrote:

I will look into it this weekend.

— Reply to this email directly or view it on GitHub https://github.com/razvanz/jasmine2-reporter/issues/9#issuecomment-91509101 .

razvanz commented 9 years ago

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 commented 9 years ago

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 notifications@github.com 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 https://github.com/razvanz/jasmine2-reporter/issues/9#issuecomment-92109378 .

razvanz commented 9 years ago

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

bvasilchik commented 9 years ago

thanks, I appreciate your effort and concern

On Tue, Apr 14, 2015 at 4:04 AM, Razvan notifications@github.com wrote:

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

— Reply to this email directly or view it on GitHub https://github.com/razvanz/jasmine2-reporter/issues/9#issuecomment-92685155 .

kimurakenshi commented 9 years ago

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

razvanz commented 9 years ago

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

Kartoffelsalat commented 9 years ago

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 commented 9 years ago

├── colors@1.0.3 ├── evt-listener@1.0.2 extraneous ├── grunt@0.4.5 ├── grunt-env@0.4.4 ├── grunt-protractor-runner@2.0.0 ├── grunt-sauce-connect-launcher@0.3.0 ├── grunt-sauce-tunnel@0.2.1 ├── jasmine-reporters@1.0.2 ├── jasmine-spec-reporter@2.2.3 ├── jasmine2-reporter@0.1.1 extraneous ├── lodash@3.5.0 ├── minijasminenode2@1.0.0 extraneous ├── protractor@2.1.0 ├── protractor-html-screenshot-reporter@0.0.17 ├── protractor-jasmine2-html-reporter@0.0.3 extraneous ├── require-all@0.0.8 ├── selenium-webdriver@2.45.1 ├── xlsx-json@0.1.0 └── yaml-config@0.3.0

I'm on osx 10.10.2

On Wed, Jun 24, 2015 at 5:15 AM, Kartoffelsalat notifications@github.com 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 https://github.com/razvanz/jasmine2-reporter/issues/9#issuecomment-114798283 .

razvanz commented 9 years ago

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 commented 7 years ago

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