File: Testing.md

package info (click to toggle)
cjs 128.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,872 kB
  • sloc: cpp: 34,377; javascript: 27,762; ansic: 13,033; sh: 1,611; python: 780; xml: 116; makefile: 38
file content (23 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (5)
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.