Posts

Showing posts with the label jasmine

How to add Jasmine settings to a “standalone” Jasmine setup (one using SpecRunner.html)

Image
How to add Jasmine settings to a “standalone” Jasmine setup (one using SpecRunner.html) There are lots of examples online on how to set up a standalone jasmine tests in a SpecRunner.html file, like so: <!doctype html> <html> <head> <title>Jasmine Spec Runner</title> <link rel="stylesheet" href="bower_components/jasmine/lib/jasmine-core/jasmine.css"> </head> <body> <script src="bower_components/jasmine/lib/jasmine-core/jasmine.js"></script> <script src="bower_components/jasmine/lib/jasmine-core/jasmine-html.js"></script> <!-- include source files here... --> <!-- include spec files here... --> With this kind of setup, how would I configure Jasmine settings, like those found in the node.js or gulp setup? I'm talking about things like random: false , setting a random seed, and other settings that aren't runner-specific. random: false ...

Node.js headless browser replacement for PhantomJS for jasmine tests

Node.js headless browser replacement for PhantomJS for jasmine tests PhantomJS development is suspended, so I need to find replacement for it. In my Ruby on Rails application Javascript Unit tests are running via jasmine-gem and they run in PhantomJS headless browser. Could you please advise alternatives for PhantomJS and ways how to incorporate them to run jasmine tests? It's off-topic question. Any way, Nightmare or headless Chrome (Puppeteer). It's unclear what this has to do with Jasmine because it's primarily intended for unit tests. For instance, Testcafe is intended for E2E and supports Chrome natively. – estus Jul 1 at 18:36 Definitely puppeteer – Vaviloff Jul 2 at 3:42 ...