Jasmine (JavaScript)
Erscheinungsbild
Jasmine | |
---|---|
Basisdaten
| |
Entwickler | Pivotal Labs |
Erscheinungsjahr | 12. August 2009 |
Aktuelle Version | 5.8.0[1] (7. Juni 2025) |
Betriebssystem | Plattformunabhängig |
Programmiersprache | JavaScript |
Lizenz | MIT-Lizenz[2] |
jasmine.github.io |
Jasmine is an open source testing framework for JavaScript.[3] It aims to run on any JavaScript-enabled platform, to not intrude on the application nor the IDE, and to have easy-to-read syntax. It is heavily influenced by other unit testing frameworks, such as ScrewUnit, JSSpec, JSpec, and RSpec.[4]
Usage
Jasmine aims to be easy to read. A simple hello world test looks like this:
describe('Hello world', function() {
it('says hello', function() {
expect(helloWorld()).toEqual("Hello world!");
});
});
Jasmine has a number of other features, such as custom matchers, spies, and support for asynchronous specifications.
References
External links
Vorlage:Programming-software-stub
- ↑ Release 5.8.0. 7. Juni 2025 (abgerufen am 18. Juni 2025).
- ↑ api.github.com. (abgerufen am 19. Oktober 2023).
- ↑ http://pivotal.github.com/jasmine/
- ↑ https://github.com/pivotal/jasmine/wiki/Background