ptomato / jasmine-gjs

Jasmine for GJS
MIT License
20 stars 8 forks source link

It does not return non-zero exit code on test failure #23

Closed elvetemedve closed 6 years ago

elvetemedve commented 6 years ago

The problem

In case of a failed test, the Jasmine command should exit with a non-zero code according to the UNIX.

Let's suppose we have a failing test case in spec/test.js like

describe("A suite is just a function", function() {
    expect(true).toBe(false);
});

When I run jasmine spec/test.js; echo $? and check the output.

Actual result

0

Expected result

Greater than 0.

Environment

Version

Jasmine 2.2.1

Environment

Arch Linux 4.13.12 Gnome 3.26.2 GJS 1.50.1

ptomato commented 6 years ago

Thanks for the report!