You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
## [Unreleased]
8
8
### Added
9
9
- Provide an `itoa` function. It is present in Arduino's runtime environment but not on most (all?) host systems because itoa is not a portable standard function.
10
+
-`to_h` and `to_s` functions for `ci_config.rb`
11
+
-`CIConfig::clone`
12
+
- Ability to override `CIConfig` from a hash instead of just a file
13
+
-`arduino_ci_remote.rb` now supports command line switches `--testfile-select=GLOB` and `--testfile-reject=GLOB` (which can both be repeated)
10
14
11
15
### Changed
12
16
- Simplified the use of `Array.each` with a return statement; it's now simply `Array.find`
@@ -19,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
19
23
20
24
### Fixed
21
25
- Determining a working OSX launch command no longer breaks on non-English installations
26
+
-`arduino_ci_remote.rb` now honors selected and rejected test files
Copy file name to clipboardExpand all lines: REFERENCE.md
+22
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,28 @@ These defaults are specified in [misc/default.yml](misc/default.yml). You are f
9
9
10
10
## Overriding default build behavior
11
11
12
+
### From the command line
13
+
14
+
The following options are currently available in the `arduino_ci_remote.rb` test runner.
15
+
16
+
```
17
+
Usage: arduino_ci_remote.rb [options]
18
+
--testfile-select=GLOB Unit test file (or glob) to select
19
+
--testfile-reject=GLOB Unit test file (or glob) to reject
20
+
-h, --help Prints this help
21
+
```
22
+
23
+
#### `--testfile-select` option
24
+
25
+
This allows a file (or glob) pattern to be executed in your tests directory, creating a whitelist of files to test. E.g. `--testfile-select=test_animal_*.cpp` would match `test_animal_cat.cpp` and `test_animal_dog.cpp` (testing only those) and not `test_plant_rose.cpp`.
26
+
27
+
#### `--testfile-reject` option
28
+
29
+
This allows a file (or glob) pattern to be executed in your tests directory, creating a blacklist of files to skip. E.g. `--testfile-reject=test_animal_*.cpp` would match `test_animal_cat.cpp` and `test_animal_dog.cpp` (skipping those) and test only `test_plant_rose.cpp`, `test_plant_daisy.cpp`, etc.
30
+
31
+
32
+
### From configuration
33
+
12
34
`.arduino-ci.yml` files will override the default behavior. There are 3 places you can put them:
0 commit comments