Steve Gravrock
fdad8849df
Revert "Added the ability to associate trace information with failing specs"
...
Pushing this back to 4.0 in hopes of increasing the chance that third
party reporters will notice it and add support.
This reverts commit 7a289f1de7 .
2021-10-02 09:45:15 -07:00
Steve Gravrock
7a289f1de7
Added the ability to associate trace information with failing specs
...
This is meant to aid in debugging failures, particularly intermittent
failures, in cases where interactive debugging or console.log aren't
suitable.
2021-09-25 16:19:28 -07:00
Steve Gravrock
b696bec9e3
Renamed failFast and oneFailurePerSpec config props to stopOnSpecFailure and stopSpecOnExpectationFailure
...
The new names are more self-explanatory and consistent with jasmine-npm. The
old names are deprecated but still work.
[#178682783 ]
2021-07-31 07:51:50 -07:00
Joris Stolwijk
e4c7d8af45
new attempt for fixing #1906 : add window.location.pathname to hrefs + comments + fixed tests
2021-06-29 14:03:25 +02:00
Steve Gravrock
f2de1be96a
Fixed "stop spec on expectation failure" checkbox in standalone
...
Fixes [#178248968 ].
2021-06-01 08:49:34 -07:00
Steve Gravrock
7d5ca27b9d
Check for forgotten console and debugger statements
2020-09-17 13:33:25 -07:00
Steve Gravrock
e7daa429a1
Show the name of the spec/suite that caused a deprecation
2020-09-13 12:59:25 -07:00
Steve Gravrock
7f392d188e
Don't leak global error handlers between Jasmine's own tests
2020-01-20 10:18:29 -08:00
Dmitriy T
7263a38c3f
Adds new configuration option to failSpecWithNoExpectations that will report specs without expectations as failures if enabled
2019-09-05 09:47:38 -07:00
Gregg Van Hove
3e888105f0
Calculate total suite run time inside the env and report in jasmineDone
2019-06-14 14:59:33 -07:00
Gregg Van Hove
984018bfdf
Make no expectations in HTML Reporter message a warning
...
- Fixes #1704
2019-06-12 13:31:25 -07:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Gregg Van Hove
92d0882a32
Introduce a configuration object to Env deprecating old single use functions
...
[finishes #159158038 ]
2018-09-25 17:08:41 -07:00
SamFare
92d33c79c7
Implemented hiding of disabled specs
2018-05-22 13:30:33 +01:00
sylhare
7fb53dcdfa
Fixing missing semi-colons
2018-02-21 09:01:24 -05:00
Gregg Van Hove
764d58a7f5
Merge branch 'master' into 3.0-features
...
- cleaning up 2.99 deprecations
2018-02-06 09:31:51 -08:00
Gregg Van Hove
24bf3489dc
Display deprecation warnings in HTML reporter
...
- Also no longer check for stack since IE doesn't do that
[#154746527 ]
2018-02-05 12:11:36 -08:00
Gregg Van Hove
0eca06a33b
Now pass a navigation helper to HtmlReporter instead of click handlers
2018-01-30 14:30:28 -08:00
Gregg Van Hove
e15f273f06
Replace old "catch exceptions" logic with proper fail fast with error reporting
...
- Option is called stopOnSpecFailure
[#85966014 ]
- See #414
- See jasmine/jasmine-npm#16
2018-01-30 11:36:56 -08:00
Gregg Van Hove
341c6df6ea
Fix HTML reporter display for excluded specs
2018-01-29 10:00:15 -08:00
Elenore Bastian
07996b567f
Suite level errors are reported in failures list
...
[#150118881 ]
Signed-off-by: Gregg Van Hove <gvanhove@pivotal.io >
2018-01-23 15:39:11 -08:00
Steve Gravrock
cf2f922e30
Merge branch 'master' into 3.0-features
2018-01-10 15:28:55 -08:00
Steve Gravrock
b943f6b736
Fixed SPEC HAS NO EXPECTATIONS warning in HTML reporter
...
[Finishes #153891435 ]
2017-12-23 11:14:37 -08:00
Steve Gravrock
f38527ff15
Removed IE 8 compatibility cruft from HtmlReporterSpec
2017-12-19 11:29:21 -08:00
Steve Gravrock
d742ada71d
Added links to re-run the suites containing a failing spec
...
[Finishes #25508053 ]
2017-12-19 11:29:18 -08:00
Steve Gravrock
2d33765cbf
Dogfood the toHaveClass matcher
...
[#153567695 ]
2017-12-11 16:00:29 -08:00
Steve Gravrock
db615e4186
Determine overall status in core, not reporters
...
[#92261606 ]
[#78679648 ]
2017-11-17 14:24:12 -08:00
Steve Gravrock
1526d5e2a8
Treat afterAll errors at any level as failures
...
[Finishes #152492514 ]
2017-11-07 20:48:23 -08:00
Steve Gravrock
82eeed3c85
Improved reporting of load errors and afterAll errors
...
- Pass file and line number to reporters when present
- Show file and line number in the HTML reporter when present
- Visually separate adjacent errors in the HTML reporter
[#24901981 ]
2017-11-04 10:28:42 -07:00
Steve Gravrock
26a7bc6acf
Report loading errors as loading errors, not afterAll errors
...
[#24901981 ]
2017-11-01 14:09:29 -07:00
Steve Gravrock
7b8edcb401
HTML reporter reports overall failure if there are any global errors
...
[#24901981 ]
2017-11-01 11:44:58 -07:00
Steve Gravrock
e31db20ec7
Default to running tests in random order
...
[Finishes #109197518 ]
2017-10-27 08:50:40 -07:00
Gregg Van Hove
de862f8133
Only clear out the spec param for Run all link
...
- Fixes #1369
2017-06-16 14:07:40 -07:00
Dominick Reinhold
d1a94bcf50
When the HtmlReporter has a 'spec' query param, the spec list only shows matching specs/suites
2016-02-28 22:47:10 -08:00
Gregg Van Hove
b6798cdb06
Html Reporter shows error bar for errors from a global afterAll
...
Issue #811
2016-02-25 16:12:15 -08:00
Gregg Van Hove
fcd5a1948b
Merge branch 'skipped-links-with-random' of https://github.com/basawyer/jasmine into basawyer-skipped-links-with-random
2016-02-16 09:43:33 -08:00
Blake Sawyer
ee0ff3b6c8
Persist randomize param in 'run all' links
2016-01-14 20:58:15 -05:00
Gregg Van Hove
79206ccff5
Rename j$ to jasmineUnderTest for specs
...
- Clarifies what it is for when writing tests
- No longer named the same as the `jasmine` that is injected into live
code
2015-12-03 17:23:32 -08:00
Gregg Van Hove
4221b2d2c4
Merge branch 'random-tests' of https://github.com/marcioj/jasmine into marcioj-random-tests
2015-10-04 14:03:17 -07:00
Marcio Junior
3f3fa484b2
Allow tests to run in random order
2015-09-26 14:53:08 -03:00
Matt Prather
42ad12ec52
Make the HtmlReport CSS classes "unique enough"
...
The only difference between this commit and the previous is that I have
used a difference scheme for naming Jasmine CSS classes.
Instead of appending "_jasmine-css" to all Jasmine CSS selectors, I have
now preprended "jasmine-" instead.
2015-05-14 14:23:06 -07:00
Matt Prather
c41fa7d156
Make the HtmlReport CSS classes "unique enough"
...
As described in Issue Report 844...
https://github.com/jasmine/jasmine/issues/844
...style rules in the app-being-tested may incidentally affect elements
in the Jasmine HTML Report container, as long as there is a chance that
the app-being-tested has CSS style rules for classes (or IDs) that
Jasmine uses.
This fix attempts to bring Jasmine to a state where each and every class
it uses always ends with "_jasmine-css" which should be unique enough to
ensure that CSS in the app-being-tested won't affect the Jasmine report,
because no app-being-tested is ever likely to use classes that end with
"_jasmine-css"
I'll be surpised if this commit is good enough as it is now, on the
first attempt to fix #844 , because of reasons I'll explain in either
the Issue or the Pull Request.
2015-05-13 18:55:44 -07:00
slackersoft
f0c480f456
Use onclick directly to better support older webkit
2015-03-06 10:09:08 -08:00
Gregg Van Hove and Molly Trombley-McCann
7693a4c959
Allow user to stop a specs execution when an expectation fails
...
[finish #1165916 ] #577
2015-03-05 15:28:00 -08:00
slackersoft
8e3066db42
Allow pending to take a reason and show it in the HtmlReporter
...
[#78954014 ] Fix #671
2015-01-26 15:55:31 -08:00
slackersoft
6c131beda7
Don't double escape focus spec links.
...
- QueryString already escapes parameter values, no need to escape when
passing them in from HtmlReporter.
[finish #29578495 ]
2014-12-16 17:21:22 -08:00
slackersoft
503f4b7f49
Keep extra query params when focusing on a spec or suite
...
[finish #29578495 ]
2014-12-15 18:30:32 -08:00
Gerg
c8cd2eabe5
Fixes console check for IE8
...
- Was causing IE8 to hang for some reason
- Also reverts previous commit, not that issue was resolved
[#79533268 ][fixes #80356450 ]
2014-10-09 00:41:17 -07:00
slackersoft
eefa716530
set suite status to failed when afterAll has failures
2014-09-26 09:12:48 -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