slackersoft
6ab70923b3
Use rake tasks in the docs repo to test it
2014-10-01 08:15:35 -07:00
slackersoft
d9c0b10be4
Remove type from queueableFns since we're not using it to determine afterAll anymore.
2014-09-30 18:28:41 -07:00
slackersoft
a58fd20d82
Build distribution for suite failed status changes
2014-09-26 18:35:06 -07:00
slackersoft
eefa716530
set suite status to failed when afterAll has failures
2014-09-26 09:12:48 -07:00
slackersoft
66c364564e
Fix custom timeout specs for firefox
2014-09-26 08:21:54 -07:00
slackersoft
68ba5b6d48
Allow custom timeout for beforeEach, afterEach, beforeAll, afterAll and it
...
Fix #483
2014-09-25 22:31:00 -07:00
slackersoft
15ae0379ec
Add fit and fdescribe to the public interface
...
They got lost in the merge
2014-09-25 13:19:13 -07:00
slackersoft
1fb0d2eefa
Merge branch 'master' of https://github.com/chernetsov/jasmine into chernetsov-master
...
Fix #678 Close #679
2014-09-25 12:59:10 -07:00
slackersoft
ba0982d89f
Merge branch 'beforeAll' into master
...
Conflicts:
lib/jasmine-core/boot.js
lib/jasmine-core/boot/boot.js
lib/jasmine-core/jasmine.css
lib/jasmine-core/jasmine.js
spec/core/SpecSpec.js
spec/core/SuiteSpec.js
spec/core/integration/EnvSpec.js
spec/node_suite.js
src/core/Env.js
src/core/requireCore.js
src/core/util.js
2014-09-24 20:20:39 -07:00
slackersoft
f703539942
build distribution for toThrowError refactor
2014-09-24 18:27:40 -07:00
Misha Chernetsov
62840f72a6
when jasmine clock is installed and date is mocked new Date() instanceof Date should equal true
2014-09-24 15:07:22 -07:00
slackersoft
6d10f97151
Merge branch 'toThrowError_refactor'
2014-09-24 13:23:50 -07:00
slackersoft
15f3d0e9d7
update doc comment for boot.js to match current documentation
2014-09-23 08:22:05 -07:00
slackersoft
b1344d5c73
Add explicit fail function.
...
- Adds an expectation failure to the current spec
[finishes #70975468 ] Fix #563
2014-09-23 08:00:46 -07:00
slackersoft
59aaac026c
Merge branch 'paladox2015-patch-1'
2014-09-22 13:10:12 -07:00
slackersoft
21f62c697a
Merge branch 'patch-1' of https://github.com/paladox2015/jasmine into paladox2015-patch-1
2014-09-22 13:09:07 -07:00
slackersoft
dc93c33af6
Merge branch 'pimterry-trackReturnValues'
2014-09-22 13:04:18 -07:00
slackersoft
4889583d5c
Merge branch 'trackReturnValues' of https://github.com/pimterry/jasmine into pimterry-trackReturnValues
2014-09-22 13:04:01 -07:00
slackersoft
41df058171
update contributing doc to indicate use of jasmine-npm
2014-09-20 20:54:45 -07:00
slackersoft
fa837ae90a
Don't depend on debugger gem, we don't really have any ruby code here.
2014-09-20 20:17:55 -07:00
slackersoft
c82c958e0d
Build distribution for earlier fixes
2014-09-16 13:05:11 -07:00
slackersoft
752e831b30
Merge branch 'mkhanal-chain_spy_andReturn'
...
Fix #669 #660
2014-09-15 13:10:40 -07:00
slackersoft
bd30065d66
Merge branch 'chain_spy_andReturn' of https://github.com/mkhanal/jasmine into mkhanal-chain_spy_andReturn
2014-09-15 13:10:24 -07:00
slackersoft
84dff421ea
Use === when checking for circular dependencies for pretty printing.
2014-09-13 18:58:02 -07:00
Mridul
709e032d1c
Added returnValues functionality to spy strategy
2014-09-13 12:41:20 +10:00
Greg Cobb
1290d93b6a
Suite result status added when suite is complete
...
- This makes it easier to detect afterAll failures, because we can
rely only complete runnables having statuses
[#78306786 & #73741654 ]
2014-09-09 11:26:32 -07:00
slackersoft
345903220c
Refactor toThrowError to be less one huge if/else if/else if block
...
- This should also improve it's code climate score as well.
- It's also about 20 lines shorter now too :)
[#59524164 ]
2014-09-07 16:02:42 -07:00
Greg Cobb
3332f93a24
Only run focused runnables inside focused suites
...
- Focused runnables now walk up the tree to unfocus the first focused
ancestor. Because of the way the tree is constructed, this makes sure
that each focused runnable has no focused ancestors.
[#78289686 ]
2014-09-05 12:25:28 -07:00
slackersoft
3b19d66268
Check for afterAll failures in a more browser independent way.
...
- Only look at the message, so browsers that don't provide a stack don't
blow up.
2014-09-04 18:49:14 -07:00
slackersoft
137c1a39f6
Check afterAll failure messages with regexp, since some browsers add more info
2014-09-04 08:15:23 -07:00
slackersoft
9402d59859
Suites report errors in afterAlls in the suiteDone event
...
- remove `afterAllEvent` from reporters
2014-09-03 22:18:20 -07:00
slackersoft
e8178d061b
Merge branch 'tgirardi-issue655'
...
Fix #655 #658
2014-09-02 13:20:18 -07:00
slackersoft
dd75394ea8
Merge branch 'issue655' of https://github.com/tgirardi/jasmine into tgirardi-issue655
2014-09-02 13:19:31 -07:00
Greg Cobb and Tim Jarratt
6b857d11ce
Factor out some common logic between fdesc and desc
2014-08-29 09:25:41 -07:00
Tomás Girardi
eb48c83649
Add specs for intervals that "clear themselves"
...
Add specs to test if issue #655 is present: the handler of an interval
cannot successfully clear the same interval that generated it's
invocation.
The most direct test consist in setting an interval with a handler that
calls clearInterval over that same interval and make the clock tick for
double of it's period. If the issue is present the interval's handler
will be called twice. If the issue is not present, the first invocation
of the handler will avoid a second one (because of the clearInterval).
Another test is included in order to check if recurring scheduled
functions are rescheduled before being called. Doing this in the reverse
order is the exact cause of the issue.
2014-08-28 20:58:30 -04:00
Greg Cobb and Tim Jarratt
08a35d134d
Ensure focused tests are only run once
...
Required duplicating some of the logic for constructing a suite from
describe so that we could mark a suite as focused in fdescribe, but
otherwise this prevents focused tests from being run more than once.
[#73742944 ]
2014-08-28 17:54:42 -07:00
Greg Cobb and Tim Jarratt
14824b5f9e
Expose fit and fdescribe in boot.js
...
* adds done() callbacks to existing specs (because we forgot, whoops!)
[Finishes #73742944 ]
2014-08-28 16:37:37 -07:00
Greg Cobb and Tim Jarratt
9afae3d978
Add a test documenting fits in fdescribes
...
Yo, this probably isn't the best behavior. Rspec and Ginkgo definitely
do not exhibit this behavior when you nest focused runnables inside
other focused runnables. We thought fixing it, but it seems like a
nontrivial refactoring would be necessary to clean this up.
[#73742944 ]
2014-08-28 16:19:31 -07:00
Greg Cobb and Tim Jarratt
64a67ed320
Trim extraneous whitespace
2014-08-28 15:55:39 -07:00
Greg Cobb and Tim Jarratt
dee1066652
Focused runnables play nicely with beforeAll/afterAll
...
[#73742944 ]
2014-08-28 15:54:27 -07:00
Greg Cobb and Tim Jarratt
d7ab9083be
Add focused describe
...
[#73742944 ]
2014-08-28 15:43:59 -07:00
Greg Cobb and Tim Jarratt
caee1508d1
Adds a fit function to Env
...
[#73742944 ]
2014-08-28 15:37:18 -07:00
slackersoft
3b8326f1e6
Detect global object properly when getting the jasmine require obj
...
- Pull global detection into requireCore and pass the global to base
Fix #569
[fix #73684570 ]
2014-08-28 13:31:04 -07:00
Greg Cobb and Tim Jarratt
980509cd7b
Preserve relative order of "alls" w.r.t. "eachs"
...
[Finishes #73742528 ]
2014-08-28 11:54:58 -07:00
Greg Cobb and Tim Jarratt
b984ff2fa6
Run before,afterAlls as 'eachs' when specifying runnablesToRun
...
- Fix bug where beforeAlls were being mutated in Suite#execute
- When Env.execute() receives a list of runnables, beforeAlls and
afterAlls are collected as beforeEachs and afterEachs. This allows
runnables to be specified in any order, regardless of if any of them
have before/afterAlls.
- Spec constructor takes a single function that returns both before and
afters, instead of two functions. This breaks the current interface
for constructing a Spec.
[#73742528 ]
2014-08-28 11:54:54 -07:00
Greg Cobb and Tim Jarratt
61bf9ac7d7
Improve quality of async timeout for afterAll spec
...
We found that this test was always passing and had strange interactions
with the ordering of other specs. Rewriting it to explicitly finish the
afterAll after a specified interval makes it fail correctly.
[#73742528 ]
2014-08-28 11:54:46 -07:00
Greg Cobb and Tim Jarratt
5b397ff33e
Revert "Deprecate suite/spec ordering hook ."
...
This reverts commit 76fafa0388 .
[#73742528 ]
2014-08-28 11:54:27 -07:00
Greg Cobb and Tim Jarratt
cd4d5c2445
ConsoleReporter exits 1 when afterAll events occur
...
[Finishes #67068790 ]
2014-08-27 14:45:59 -07:00
Greg Cobb and Tim Jarratt
5b6edff3fd
Report AfterAll failures as they occur
...
There didn't seem to be a valid reason to wait until the very end to
report these.
2014-08-27 14:01:28 -07:00
Greg Cobb and Tim Jarratt
cc3678f033
Refactor suite to share reportExpectationFailure func
...
This was shared between our suite factory and the suite factory.
Sweet.
2014-08-27 13:50:56 -07:00