File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8
8
### Added
9
9
10
10
### Changed
11
+ - Unit tests and examples are now executed alphabetically by filename
11
12
12
13
### Deprecated
13
14
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ def library_examples(installed_library_path)
319
319
proj_file = example_path + e + "#{ e } .ino"
320
320
proj_file . exist? ? proj_file . to_s : nil
321
321
end
322
- files . reject ( &:nil? )
322
+ files . reject ( &:nil? ) . sort_by ( & :to_s )
323
323
end
324
324
end
325
325
end
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ def cpp_files_in(some_dir)
109
109
real = some_dir . realpath
110
110
files = Find . find ( real ) . map { |p | Pathname . new ( p ) } . reject ( &:directory? )
111
111
cpp = files . select { |path | CPP_EXTENSIONS . include? ( path . extname . downcase ) }
112
- cpp . reject { |path | path . basename . to_s . start_with? ( "." ) } # ignore hidden
112
+ not_hidden = cpp . reject { |path | path . basename . to_s . start_with? ( "." ) }
113
+ not_hidden . sort_by ( &:to_s )
113
114
end
114
115
115
116
# CPP files that are part of the project library under test
You can’t perform that action at this time.
0 commit comments