-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doc #9849
Add doc #9849
Changes from 6 commits
ac20371
36102c2
b560e20
4757109
57185d9
97c1586
880226e
4bb5c00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### CLI Commands | ||
# CLI Commands | ||
|
||
The qooxdoo CLI commands allow to conveniently create, modify, compile, testand publish | ||
and publish your qooxdoo project. To see the main available commands, type | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. delete duplicated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
|
@@ -30,7 +30,7 @@ Commands: | |
|
||
To see the subcommands parameters and options, just type in `qx <command> --help`. | ||
|
||
# Persistent Configuration | ||
## Persistent Configuration | ||
|
||
Some commands require (or benefit from) having persistent configuration; this is | ||
accessed via the `qx config` command and the data is stored in a directory | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Testing of your application | ||
|
||
Testing of your qooxdoo app can be done by the qooxdoo cli command `qx test`. | ||
For this purpose you need to install one of the provide test plugins: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- qooxdoo/qxl.testtapper: Runs units tests based on `qx.dev.unit.TestCase` | ||
|
||
## Preparing your application | ||
|
||
- install testapper with `qx package install qooxdoo/qxl.testtapper --save=0` | ||
derrell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- prepare testapper application in your `compile.json` by adding your test namespace: | ||
|
||
``` | ||
"environment": { | ||
"testtapper.testNameSpace": "myapp.test" | ||
}, | ||
``` | ||
|
||
- include your test classes | ||
|
||
``` | ||
"include": [ | ||
"myapp.test.*" | ||
], | ||
``` | ||
|
||
- write some tests: | ||
``` | ||
qx.Class.define("myapp.test.MyTest", | ||
{ | ||
extend : qx.dev.unit.TestCase, | ||
members : | ||
{ | ||
testOne : function() { | ||
this.assertTrue(1 === 1); | ||
} | ||
}); | ||
``` | ||
|
||
- run `qx test` and check result. | ||
|
||
## Hints | ||
|
||
- to run a single test you can use `qx test --class myapp.test.MyTest --method testOne` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Migrate your application from qooxdoo 5.0 to qooxdoo 6.0 toolchain | ||
|
||
- create new application with `qx create oldName` using the information provided in old/Manifest.json | ||
- replace some folders in the new application with the conterparts of the old application | ||
- old/source/class -> new/source/class | ||
- old/source/resource -> new/source/resource | ||
- old/source/translation -> new/source/translation | ||
- move old/source/index.html to new/source/boot/index.html | ||
- add this into new/source/boot/index.html just before `</head>` | ||
``` | ||
${preBootJs} | ||
<script type="text/javascript" src="${appPath}boot.js"></script> | ||
``` | ||
- find out which libraries are used in the old application. For this have a look into `compile.json` libraries section. Add all libraries found here with | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that's libraries used in the old application, shouldn't it say to look into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed |
||
``` | ||
qx pkg update | ||
qx pkg list | ||
qx pkg install library | ||
``` | ||
Hopefully all needed libraries are converted. | ||
|
||
- find used theme in old/compile.json and set this in new/compile.js | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it still says There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And |
||
- run `qx compile` and fix errors | ||
- run `qx serve` to run build in webserver and test it in your browser `http://localhost:8080/` | ||
derrell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testand
->test, and
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done