Skip to content

Commit 418e2fb

Browse files
committed
default the tests set to current working directory
1 parent 6342dde commit 418e2fb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ tune a set of run parameters (such as logging settings); you can find
4040
[here](docs/config/run.md) more information on the configuration file.
4141
The application requires one or more **tests sets** to run. The `sipssert`
4242
application starts the engine controller, which then runs each **tests set**.
43+
If no **test set** is provided, the current working directory is used.
4344
* Each **tests set** provided as parameter represents a directory which
4445
consists of multiple **scenarios**; it may also contain a
4546
[`config.yml`](docs/config/tests-set.md) file and

docs/config/run.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The run configuration file consists of the following settings:
1717
* `level`: debugging level of the controller (Default: `INFO`)
1818
* `timestamp`: adds timestamp to genereated logs (Default: `true`)
1919
* `tests`: a list of tests sets to run - these represent the default set of
20-
tests to be run, unless specified as arguments otherwise (Default: empty)
20+
tests to be run, unless specified as arguments otherwise (Default: current
21+
working directory)
2122
* `test`: a list of test filters to be used unless specified as arguments
2223
through the (`-t|--test` argument) (Default: empty)
2324
* `exclude`: a list of exclude filters to be used unless specified as
@@ -33,4 +34,6 @@ logging:
3334
console: false
3435
level: INFO
3536
file: controller.log
37+
tests:
38+
- .
3639
```

sipssert/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, args):
4949
self.sets_dirs = args.tests
5050
else:
5151
self.sets_dirs = list(map(os.path.abspath,
52-
self.config.get("tests", [])))
52+
self.config.get("tests", ["."])))
5353
test_filters = args.test if len(args.test) else \
5454
self.config.get("test", [])
5555
exclude_filters = args.exclude if len(args.exclude) else \

0 commit comments

Comments
 (0)