Skip to content

Commit

Permalink
doc: Update docs on generating simple tests
Browse files Browse the repository at this point in the history
Refs #235
  • Loading branch information
scop committed Dec 3, 2018
1 parent 464c822 commit 840f342
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions doc/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,10 @@ Maintenance
Adding a completion test
~~~~~~~~~~~~~~~~~~~~~~~~

You can run `cd test && ./generate cmd` to add a test for the `cmd` command.
This will add two files with a very basic tests:
----------------------------------
test/completion/cmd.exp
test/lib/completions/cmd.exp
----------------------------------
Place any additional tests into `test/lib/completions/cmd.exp`.
You can run `cd test && ./generate cmd` to add a test for the `cmd`
command. Additional arguments will be passed to the first generated test case.
This will add the `test/t/test_cmd.py` file with a very basic test, and add it
to `test/t/Makefile.am`. Add additional tests to the generated file.


Fixing a completion test
Expand Down

0 comments on commit 840f342

Please sign in to comment.