Davis W. Frank
9e927af56e
Merge pull request #548 from pivotal/python
...
Create jasmine-core python egg
2014-03-11 14:05:45 -07:00
Greg Cobb
fc173e9a5e
Add logo image to readme
2014-03-11 13:54:47 -07:00
Greg Cobb
62a7f64659
Update readme with correct code climate link
2014-03-11 13:49:51 -07:00
Greg Cobb and Luan Santos
3e739e4bc9
Create jasmine-core python egg
2014-03-11 13:40:28 -07:00
Greg Cobb and Luan Santos
ba6f99423f
Add jasmine logo image to html runner
...
[#3984585 ]
2014-03-10 17:16:31 -07:00
Christopher Amavisca, Greg Cobb and Luan Santos
3a5672cd33
Show message if no specs are found in console reporter
...
[#12784235 ]
2014-03-10 12:00:49 -07:00
Christopher Amavisca, Greg Cobb and Luan Santos
af4cc76e2a
Show message if no specs are found
...
[#12784235 ]
2014-03-10 11:23:27 -07:00
Christopher Amavisca, Greg Cobb and Luan Santos
1922514f2d
Specs without expectations should be alerted to the user
...
- Add console.error to the HtmlReporter when there is a spec without any expectation
- Change the spec's link text and color to include a warning
- Create a status for specs to label them as "empty"
- console is not accessible to IE unless you have developer tools open,
so protect against that by mocking console.
[#59424794 ]
2014-03-10 11:19:07 -07:00
Christopher Amavisca and Greg Cobb
668846147c
Fix issues with displaying error messages for afterAll (browser compatibility)
...
- Switch from showing error stack to showing message/description since only chrome/ff support stack
- Fallback to error.description if error.message is undefined
- Made exceptionList variable name consistent between both reporters
2014-03-06 18:25:49 -08:00
Christopher Amavisca and Greg Cobb
76fafa0388
Deprecate suite/spec ordering hook .
...
- Remove parameter from env.execute()
- Remove deprecated test
- Set runnablesToRun to always start with the topSuite
[#66789174 ]
2014-03-06 16:54:53 -08:00
Christopher Amavisca and Greg Cobb
bed1c15ea4
HtmlReporter shows error alerts for afterAllExceptions
...
-Add list of exceptions in HtmlReporter to push to on error
-Create alerts for each exception in the list (with stack trace)
[#67055688 ]
2014-03-06 15:39:04 -08:00
Christopher Amavisca and Greg Cobb
6caf4c5de2
Print afterAllExceptions to the console.
...
- Add afterAllException function to ConsoleReporter
- Print the stack traces of the errors at the end of the console output
[#67055730 ]
2014-03-06 15:02:55 -08:00
Christopher Amavisca and Greg Cobb
97ae9a2d88
After all exceptions dispatch to reporter hook
...
- Add 'afterAllException' hook to reporter dispatch, we might want to make this more generic in the future
- Add afterAllException function to HtmlReporter
[#66789174 ]
2014-03-06 12:01:37 -08:00
slackersoft
71dbffeaef
Merge branch 'recursive-containing' of https://github.com/cbandy/jasmine into cbandy-recursive-containing
2014-03-05 21:01:34 -08:00
Christopher Amavisca and Greg Cobb
a3c3505086
beforeAll can have expectations and passes expectation failures to its children
...
[#66789174 ]
2014-03-05 16:27:58 -08:00
Christopher Amavisca and Greg Cobb
a9e0112a9b
Throw error if you add a custom matcher or equality outside of a runnable
...
[#66789174 ]
2014-03-05 14:37:17 -08:00
Christopher Amavisca and Greg Cobb
a2ac5ef3b6
Throw error if you define a spy outside of a runnable
...
[#66789174 ]
2014-03-05 14:27:19 -08:00
Christopher Amavisca and Greg Cobb
b200952195
Only clear resources if suite is not disabled
...
[#66789174 ]
2014-03-05 14:00:57 -08:00
Rajan Agaskar
9c6d03d3ac
README.md: Add link to Jasmine 2.0 release notes
...
- To help people upgrading find a list of what they'll need to change.
2014-03-05 11:31:39 -08:00
Christopher Amavisca, Greg Cobb and Sheel Choksi
752a36d3ff
Manage spys/matchers/custom equalities for beforeAll
...
- Refactor expectations to take list of matchers
- Add spyRegistry to manage runnables' spies
- Add clone util
[#66789174 ]
2014-03-05 10:28:37 -08:00
Gregg Van Hove and Sheel Choksi
52026fb0f7
beforeAll/afterAll can be timed out and errors are applied to all children specs
2014-03-03 16:13:59 -08:00
Gregg Van Hove and Sheel Choksi
e17a2cb1e0
share usercontext for full suite
2014-03-03 11:57:32 -08:00
Gregg Van Hove and Sheel Choksi
ec5695acc1
first (naive) pass at beforeAll/afterAll
2014-03-03 09:26:39 -08:00
Chris Bandy
47884032ad
Fix ObjectContaining to match recursively
...
matchersUtil.equals() does not expect a matcher as its first argument,
so send the "actual" value first and the "expected" value second.
2014-03-02 11:42:37 -06:00
slackersoft
d7053612f5
Build distribution to include MockDate
...
- Forgot to do this when merging the pull request
- Also fix quotes for string to match jshint rules
2014-03-01 13:18:15 -08:00
Christopher Amavisca and Sheel Choksi
9d1e92f5e2
Clean up more remnants of dev_boot
2014-02-27 18:02:14 -08:00
Elana Koren and Gregg Van Hove
eebba2ecca
Support browsers that don't supply a Date.now()
...
- install the mockDate by calling `mockDate` on `clock` instead of
passing an argument to `clock.install()`
[Finishes #66606132 ] Closes #361
2014-02-27 11:55:25 -08:00
Elana Koren and Gregg Van Hove
627a262085
Merge branch 'mock-date' of https://github.com/jalopez/jasmine into jalopez-mock-date
2014-02-27 10:03:35 -08:00
Christopher Amavisca and Sheel Choksi
305bd73142
Instead of dev boot use a custom helper to defined j$
2014-02-26 17:35:10 -08:00
Elana Koren and Gregg Van Hove
fb853ad5b5
Don't include jasmine_selenium_runner from github, now that it's
...
published to rubygems
[finish #66472672 ]
2014-02-26 15:30:17 -08:00
Greg Cobb and Sheel Choksi
640f94a1bd
Don't allow calling the same done callback multiple times
...
[finishes #62585700 ][fixes #523 ]
2014-02-25 18:06:30 -08:00
Greg Cobb and Sheel Choksi
5aac3e3292
Refactor Spec and QueueRunner [ #62585700 ]
...
- QueueRunner now responsible for timing out async specs instead of
Spec
- Make sure only spec functions are timeoutable and not suites (due to
the refactor)
2014-02-25 18:06:30 -08:00
Charles Hansen and Gregg Van Hove
84160ff51d
revert to old version of checking the docs
2014-02-25 11:28:02 -08:00
Charles Hansen and Gregg Van Hove
e972bac80d
No longer try to push to github, we'll update jasmine in docs manually
2014-02-25 10:58:59 -08:00
Charles Hansen and Gregg Van Hove
455b6bade8
bundle install in docs repo
2014-02-25 10:56:41 -08:00
Charles Hansen and Gregg Van Hove
23c0e379e0
update edge docs when changes are made to jasmine
2014-02-25 10:42:59 -08:00
Robin Böhm
31d71ac22f
add single quote check to jshint and fix src files for that
...
[fixes #522 ]
2014-02-24 16:28:16 -08:00
Greg Cobb and Sheel Choksi
095b02ad83
Follow redirects when trying to connect to sauce
2014-02-24 16:13:25 -08:00
Greg Cobb and Sheel Choksi
98c258a659
Bump built distribution [ #503 ][finishes #66350898 ]
2014-02-24 15:47:34 -08:00
Michal Mocny
85fa148f18
Support running jasmine within CSP (remove eval)
...
[fixes #503 ]
2014-02-24 15:44:11 -08:00
Sheel Choksi
76ca5ef6d4
Allow matcher custom failure messages to be a function
...
By deferring the evaluation of these messages, we can avoid the
expensive creation of them when in the majority use case (tests are
passing) they are not needed.
These failure messages were causing performance problems with larger
objects needed to be pretty printed as discussed in #520 and brought up
by @rdy.
[fixes #65925900 ][fixes #520 ]
2014-02-18 20:05:30 -08:00
Sheel Choksi
46d2c43da1
Revert "Use default failure message for toBeNaN"
...
Forgot that NaN has special casing that it needs a custom error message
for
This reverts commit b6c03a34e7 .
2014-02-18 19:14:16 -08:00
Sheel Choksi
b6c03a34e7
Use default failure message for toBeNaN
...
It is providing the same functionality by default without a custom error message
2014-02-17 22:45:54 -08:00
Sheel Choksi
4ddf316388
Add in default rake task
2014-02-16 14:57:14 -08:00
Sheel Choksi
a8cbef3123
More color blind friendly CSS from @dleppik
...
Updating the passing and failing colors in HTML reporter to
help red/green color blind users using the colors suggested by @dleppik
Console reporter still likely needs similar changes but there's less
options there
[#463 , #509 , finishes #60613086 ]
2014-02-16 14:56:18 -08:00
Sheel Choksi
a937d8d74f
Merge pull request #521 from robinboehm/load-grunt-tasks
...
use load-grunt-tasks
2014-02-16 14:53:07 -08:00
Robin Böhm
2fc2802809
use load-grunt-tasks
2014-02-16 22:13:53 +01:00
Sheel Choksi
7cf899a4ea
Special case printing -0
...
Use the 1/x trick to determine if a value is -0 and special case the
printing of it.
[closes #496 ]
2014-02-09 14:14:33 -08:00
Sheel Choksi
83c0ea7f91
Fix error message in jasmine.any
...
The expected any 'class' was not being included in the error message
due to accessing the wrong property
2014-02-09 14:06:47 -08:00
Sheel Choksi
289c8313d1
Short spec to document why we close over Date and ensure cross-browser compatibility
...
[closes #506 ]
2014-02-09 12:20:03 -08:00