qooxdoo-archive / qooxdoo-cli

(deprecated, moved into qooxdoo-compiler) qx commandline
MIT License
4 stars 5 forks source link

Create tests #13

Closed cboulanger closed 6 years ago

cboulanger commented 7 years ago

We need a test suite for each API command that ties into the qooxdoo test system and will work with travis.

@johnspackman Suggestion how we should do this? I haven't created any tests for my qooxdoo code so far (shame on me).

johnspackman commented 7 years ago

I dont have many tests so far, but Im using tape for building tests for qooxdoo-compiler; code so far is at https://github.com/qooxdoo/qooxdoo-compiler/tree/master/test.

It's a little tricky because we can't just compare the output of one compile to an "expected" result because lots will (legitimately) change between releases, eg the list of dependencies and order cannot be binary compare.

I think at least initially we need to focus on smaller, specific changes. For example, qooxdoo-cli tests would test that the compile.json and contrib.json are created and edited properly. In qooxdoo-compiler, I also check for incremental changes, eg compile once then add an "include", compile again and check there are additions.

cboulanger commented 6 years ago

Travis tests have been added a while ago, closing.