File: Testing.md

package info (click to toggle)
gjs 1.86.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,724 kB
  • sloc: cpp: 39,075; javascript: 30,720; ansic: 15,971; sh: 1,759; python: 772; xml: 135; makefile: 40
file content (23 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Testing

Testing infrastructure for GJS code is unfortunately not as complete as other
languages, and help in the area would be a greatly appreciated contribution to
the community.

## Jasmine GJS

[Jasmine GJS][jasmine-gjs] is a fork of the Jasmine testing framework, adapted
for GJS and the GLib event loop. See the [Jasmine Documentation][jasmine-doc]
and the [GJS test suite][gjs-tests] for examples.

[jasmine-doc]: https://jasmine.github.io/pages/docs_home.html
[jasmine-gjs]: https://github.com/ptomato/jasmine-gjs
[gjs-tests]: https://gitlab.gnome.org/GNOME/gjs/blob/HEAD/installed-tests/js

## jsUnit

> Deprecated: Use [Jasmine GJS](#jasmine-gjs) instead

The `jsUnit` module was originally used as the testing framework in GJS. It has
long been deprecated in favour of Jasmine.