qooxdoo / qooxdoo-compiler

Compiler for Qooxdoo, 100% javascript
MIT License
36 stars 23 forks source link

Create better test suite for the CLI #83

Open johnspackman opened 6 years ago

johnspackman commented 6 years ago

From @cboulanger on November 28, 2017 8:25

Currently, the travis test consists of one long .travis.yml file executing CLI commands. We need a setup in which each command and subcommand is in its own file. The question is if we should a) use a JS test framework and run the CLI commands from JS, or simply b) sequentially run all the scripts in a subdirectory, each returning exit code 0 in case everything worked, and >0 if not. Third option c) a pure bash/Command line test framework (there must be some, haven't done the research yet).

Copied from original issue: qooxdoo/qooxdoo-cli#48

cboulanger commented 5 years ago

The test suite should ideally be cross platform and run the CLI commands from node so that we don't have to maintain separate scripts for Mac/Linux and Windows.

cboulanger commented 5 years ago

Groundwork is done with #424, but current tests simply check for exit value and not for the correct output.