-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"fit" doesn't work with jasmine 2.x on protractor #1908
Comments
Please provide a sample case that reproduces this. |
I am not having this problem |
For example: Using fdescribe('Describe Description', function () {
it('Test1', function () {
expect(1).toBe(1);
});
it('Test2', function () {
expect(2).toBe(2);
});
}); I get the following result: Spec started
Describe Description
✓ Test1
✓ Test2
Executed 2 of 12 specs SUCCESS (10 SKIPPED) in 0.068 secs. Using describe('Describe Description', function () {
fit('Test1', function () {
expect(1).toBe(1);
});
it('Test2', function () {
expect(2).toBe(2);
});
}); I get the following result: Spec started
Executed 0 of 12 specs SUCCESS (12 SKIPPED) in 0.003 secs. It should run the test that I've marked with |
That's strange. Can you provide the conf file you used as well as provide the result of running this with the |
I found the problem. I still don't know how to solve it but basically, is I remove the Spec started
Describe Description
✓ Test1
Executed 1 of 12 specs SUCCESS (11 SKIPPED) in 0.032 secs. I removed the following lines from jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter(
{
'savePath': './reports/junit',
'consolidate': true,
'consolidateAll': false,
'useDotNotation': true,
'filePrefix': 'SPEC-'
}
)); Any ideas? |
There's a very similar issue reported on stack overflow: http://stackoverflow.com/questions/28909947/protractor-fdescribe-and-fit-does-not-work-with-jasmine-reporters. It looks like the theme is Can you try running |
I'm using the same setup as João Cunha (protractor 1.8.0 with jasmine 2.0 2015-03-08 20:15 GMT+00:00 Hank Duan notifications@github.com:
|
Thanks @hankduan, i didn't found anything on stack overflow at the time. @mourasman: Which version of |
The reporter's version is the problem, indeed... I've updated from 0.4.1 to 2015-03-09 0:21 GMT+00:00 João Cunha notifications@github.com:
|
Can you use a Can you provide me your way to add the |
Using "jasmine-reporters": "0.4.1": jasmine.getEnv().addReporter(new Give this a try and let is know if it worked. 2015-03-09 10:36 GMT+00:00 João Cunha notifications@github.com:
|
It seems that we can run tests with So, I'm gonna open an issue on I think we can close this issue. Thanks guys. |
I've reproduced the issue and am working to track it down. I'll update this thread when larrymyers/jasmine-reporters#87 is fixed. |
This is fixed in jasmine-reporters@2.0.5, which was just released. |
Thanks @bloveridge. Closing. |
I'm using the protractor@1.8.0 with
framework: 'jasmine2'
on "protractor.conf".When I set an
it
asfit
, I have the following message:0 tests run!
Although, when I use "fdescribe", it works as expected.
The text was updated successfully, but these errors were encountered: