lethosor
853e12029e
Merge branch 'develop' of DFHack/dfhack into develop
2021-05-08 22:12:54 -04:00
lethosor
4968d97c22
test/structures/find: avoid overwriting other potential config values
2021-05-08 22:12:07 -04:00
lethosor
6ecfc07c41
Merge remote-tracking branch 'myk002/myk_fortress_mode' into develop
2021-05-08 22:10:59 -04:00
DFHack-Urist via GitHub Actions
9254db5a4d
Auto-update submodules
...
scripts: master
2021-05-08 07:21:08 +00:00
myk002
dfe4ddee96
ignore dismissed screens when checking for fort
2021-05-07 15:19:34 -07:00
myk002
7060c297a8
disable fortress mode tests in CI for now
...
until we get a reuable fortress save set up
2021-05-07 15:19:10 -07:00
myk002
e07635b345
don't record test status for unreachable tests
...
and print a summary line for how many tests were unreachable
2021-05-07 15:19:10 -07:00
myk002
eaf0722cdf
make save_dir configurable, use load-save to load
2021-05-07 15:19:09 -07:00
myk002
f8baba2cfd
update changelog
2021-05-07 15:19:09 -07:00
myk002
d288bc6bde
implement 'fortress' unit test mode
...
- implement navigation function for loading a fortress from the title
screen (requires a fortress save to be ready in region1/).
- ensure we don't try repeatedly to enter a mode that we can't reach
(such as getting back to the title screen from fortress mode). failing
to enter the mode once will skip all remaining tests in that mode.
2021-05-07 15:19:09 -07:00
DFHack-Urist via GitHub Actions
27433b7388
Auto-update submodules
...
library/xml: master
2021-05-07 07:20:06 +00:00
DFHack-Urist via GitHub Actions
b1b2087271
Auto-update submodules
...
scripts: master
2021-05-05 07:19:53 +00:00
DFHack-Urist via GitHub Actions
7809c6094a
Auto-update submodules
...
scripts: master
2021-04-28 07:08:30 +00:00
DFHack-Urist via GitHub Actions
c7958480bd
Auto-update submodules
...
scripts: master
2021-04-26 07:09:13 +00:00
DFHack-Urist via GitHub Actions
06612182ec
Auto-update submodules
...
library/xml: master
scripts: master
2021-04-24 07:08:43 +00:00
DFHack-Urist via GitHub Actions
22752f0630
Auto-update submodules
...
library/xml: master
2021-04-23 07:08:50 +00:00
DFHack-Urist via GitHub Actions
1c32783dd2
Auto-update submodules
...
scripts: master
2021-04-19 07:08:11 +00:00
lethosor
d902a59541
Move changelog entry to right section and remove link
...
Ref #1839 : https://github.com/DFHack/dfhack/pull/1839/files#r615517105
2021-04-18 23:43:36 -04:00
lethosor
155d419b8b
Merge remote-tracking branch 'myk002/myk_quickfix' into develop
2021-04-18 23:41:21 -04:00
myk002
a76c89f198
fix quickfortress stockpiles
2021-04-17 14:14:35 -07:00
lethosor
c4c9559b39
Make test failure stack traces include all frames from the test file
2021-04-17 13:55:43 -04:00
lethosor
f414c5b217
Merge branch 'test-mocks' into develop
2021-04-17 13:44:49 -04:00
lethosor
403f822520
Add tests for patch() where patching raises an error
2021-04-17 00:59:56 -04:00
DFHack-Urist via GitHub Actions
e8fb29d908
Auto-update submodules
...
scripts: master
2021-04-16 07:07:05 +00:00
lethosor
ee8e10429d
Add initial implementation of mock.restore()
...
Like mock.patch() but only restores original values instead of also setting
new values initially.
2021-04-16 00:34:46 -04:00
lethosor
a2f6bab0e6
Update scripts, authors
...
Ref dfhack/scripts#267
2021-04-15 22:29:53 -04:00
DFHack-Urist via GitHub Actions
792bf14921
Auto-update submodules
...
library/xml: master
2021-04-13 07:08:38 +00:00
lethosor
ed192a3712
Update scripts
2021-04-12 00:48:40 -04:00
lethosor
909efe71a0
Add stack traces to test error messages
...
Also reorder for consistency with "test failed:" messages, which are at the end
of a test's output.
2021-04-12 00:48:10 -04:00
lethosor
855ab1a0a3
Merge remote-tracking branch 'lethosor/test-mocks' into develop
2021-04-10 16:12:33 -04:00
lethosor
757736728d
Add a mock.func() helper for mocking functions
2021-04-10 01:22:03 -04:00
DFHack-Urist via GitHub Actions
846cf9a8ff
Auto-update submodules
...
scripts: master
2021-04-09 07:08:20 +00:00
lethosor
f44442e5e9
Use mock.patch() in ci/test.lua
...
Other tests that could benefit are currently only in the scripts repo.
2021-04-09 00:50:11 -04:00
lethosor
5424392273
mock.patch(): propagate return values
2021-04-09 00:41:39 -04:00
lethosor
f25b8a0d14
Fix patching value with nil
2021-04-09 00:35:54 -04:00
lethosor
7b2f01d45b
Add initial mock.patch() implementation for tests
2021-04-09 00:32:10 -04:00
lethosor
e2d56b9b8f
Merge remote-tracking branch 'lethosor/tweak-hide-priority-improvements' into develop
2021-04-08 23:43:14 -04:00
lethosor
781dff7144
Merge remote-tracking branch 'myk002/myk_kdevelop_cmake' into develop
2021-04-08 23:42:25 -04:00
lethosor
70b85631aa
Merge remote-tracking branch 'myk002/myk_run_script_wrap' into develop
2021-04-08 23:35:16 -04:00
DFHack-Urist via GitHub Actions
172821af17
Auto-update submodules
...
library/xml: master
scripts: master
2021-04-07 07:07:27 +00:00
myk002
449fa42906
ignore build/.cmake cache created by kdevelop
2021-04-06 11:47:52 -07:00
myk002
12315fc5dd
wrap dfhack.run_script for tests
...
so dfhack.internal.scripts isn't polluted with IN_TEST envs
2021-04-06 11:33:49 -07:00
lethosor
106fa4a5cf
Merge remote-tracking branch 'myk002/myk_printerr_match' into develop
2021-04-06 00:39:16 -04:00
lethosor
761cf19e99
tweak hide-priority: make toggle state persist across designation menu uses
...
To reproduce:
1. Enter the `d`esignation menu
2. Press `-+` to change priorities
3. Create a designation
4. Press `Alt-p` to hide priorities
5. Exit and re-enter the designation menu (`Esc`, `d`)
Previously, priorities would be visible again after step 5. With this change, they are not visible until you press `Alt-p` again.
Fixes #1068 . Note that this is a relatively unobtrusive fix: selecting a priority with `+-` will still result in priorities being shown again. This is native DF behavior that I am reluctant to override because users of designation priorities likely want to see them.
2021-04-05 21:58:51 -04:00
myk002
642d8cbe4b
handle nil values sent to printerr
2021-04-05 01:37:43 -07:00
myk002
81bfdf4182
update changelog
2021-04-04 17:40:59 -07:00
myk002
13ca7f8c9e
move expect.lua from internal/ to test_util/
2021-04-04 17:37:37 -07:00
myk002
c8abecd082
detect dfhack.printerr usage at the test level
...
not the expect level. this allows us to properly nest expect calls
inside of expect.printerr_match() as originally intended.
2021-04-04 17:37:36 -07:00
myk002
5af1b627cb
add tests, move expect.lua
...
I moved expect.lua from library/lua/test/ to library/lua/internal since
luacov is configured to ignore any file with /test/ in its path
2021-04-04 17:37:36 -07:00
myk002
757dbeb238
update existing calls to expect.error* to new API
2021-04-04 17:37:36 -07:00