myk002
af47434f52
protect against 0 width in string:wrap()
2022-04-29 11:29:19 -07:00
lethosor
d1f0edd33b
Apply initial pre-commit config
2022-04-12 14:48:19 -04:00
Myk
4f9608da13
Document and update argparse module ( #2089 )
...
also add unit tests and use new string fns in processArgs and allow it to recognize parameters with two dashes instead of just one
2022-04-11 16:16:55 -07:00
Myk
96b5b4420b
Add string:escape_pattern() utility function ( #2082 )
...
* add string:escape_pattern() to dfhack.lua
stolen from devel/query.lua. will migrate scripts to use the common implementation later
2022-04-10 21:18:01 -07:00
myk002
54e8761aa0
capture fortifications and engravings in blueprint
2022-04-01 12:20:37 -07:00
lethosor
1f49d4a7cf
test: quickfort/ecosystem: avoid assuming output folder exists
2022-03-31 21:57:20 -07:00
myk002
dbe87d4156
implement orders list
2022-02-25 12:58:56 -08:00
myk002
5ab541c17e
support start() markers in test blueprints
2022-02-18 14:54:45 -08:00
myk002
925132af4e
use "golden" files for regression testing
...
where they differ from the raw input files. this is required for meta
blueprints since the output blueprints that the `blueprint` plugin
generates only knows map state, not the meta hierarchy that produced it.
2022-02-12 18:28:47 -08:00
myk002
490afa28c5
ecosystem test harness: decouple phases from modes
2021-10-04 12:53:31 -07:00
myk002
27c0c41536
only create empty blueprints on explicit request
...
and use the new functionality in the ecosystem tests, which simplifies
the blueprint commandline creation
2021-10-02 23:36:26 -07:00
myk002
8a08a0a0c1
produce minimal blueprints for the ecosystem test
2021-10-02 09:25:19 -07:00
myk002
ecdfca89d1
support nil to indicate no short param name
2021-09-25 22:00:49 -07:00
myk002
fc556c9e5d
implement non-alias long form params
...
now long form parameters can exist by themselves without being an alias
for a required equivalent short form param
2021-09-25 22:00:49 -07:00
myk002
c23970f36b
add unit tests
2021-09-20 16:10:15 -07:00
myk002
8c8365abec
only run dig-now over the test area
2021-09-17 10:57:26 -07:00
myk002
44a93fcb28
update unit tests
2021-09-17 10:57:26 -07:00
myk002
772e386427
implement --format option for minimal and pretty
...
pretty is currently equivalent to the previous format, though there will
be changes in the future
2021-09-17 10:57:26 -07:00
myk002
0747f872b0
add --splitby param to blueprint
...
--splitby=none is the new default, allowing all blueprint phases to be
written to a single file. old behavior of one phase per file is
supported via --splitby=phase.
2021-09-09 09:58:53 -07:00
lethosor
d5be63823d
Merge remote-tracking branch 'TymurGubayev/patch-1' into develop
2021-08-31 00:55:36 -04:00
myk002
39a8f2c799
migrate existing tests to use expect.str_find()
2021-08-25 06:38:22 -07:00
myk002
9168f9359d
name test method the same as the method under test
2021-08-24 21:29:32 -07:00
myk002
691e54dfc6
rename expect.find to expect.str_find
2021-08-24 21:06:12 -07:00
myk002
b2f44f00f1
add pattern matching expect.find() for unit tests
...
settled on `find()` since the string method of the same name has the
same semantics. other options: `str_find()` since it fails on non-string
or `match()` (but that might imply that the pattern needs to match the
entire string).
2021-08-23 22:59:30 -07:00
lethosor
3a27a5d6a0
Allow dialog tests to run outside of fortress mode
2021-08-22 17:45:45 -04:00
myk002
86b2329b7f
fix hardcoded call to pairs, add test
2021-08-20 22:55:07 -07:00
myk002
119595dcaf
use df.item._identity to test noniterable userdata
2021-08-19 21:57:16 -07:00
myk002
0f0ae156c3
test printall_recurse
2021-08-19 21:57:16 -07:00
myk002
c5bb139282
unit test with userdata
2021-08-19 21:57:16 -07:00
myk002
d9c6c2dde3
add safe_pairs, update unit tests
2021-08-19 21:57:16 -07:00
myk002
3f2795e80a
unit tests first draft
2021-08-19 21:56:44 -07:00
myk002
f47bab9806
pass comment param to expect calls
2021-08-14 16:43:40 -07:00
myk002
9a7a692ea8
ensure restored orders start at index 0
...
so the manager_order_next_id state can be set to #orders
2021-08-14 16:35:41 -07:00
myk002
9ec1488f1b
add unit tests
2021-08-14 16:35:40 -07:00
myk002
98b707d444
ensure active orders are restored after tests
2021-08-14 16:35:40 -07:00
Timur Kelman
4c2473de92
add test.ListBox_with_multi_select_and_visual_indicator
...
this test also demonstrates actual (minimal) example usage
2021-07-31 11:46:59 +02:00
Timur Kelman
4bf8b6daab
fix tabs and whitespaces
2021-07-30 23:23:58 +02:00
Timur Kelman
70d088c763
add tests for dialog.lua
2021-07-30 23:21:35 +02:00
myk002
a34e1e986d
quickfort orders is now safe to include directly
2021-07-09 22:02:15 -07:00
myk002
8fe173299c
update header comment
2021-07-09 22:02:15 -07:00
myk002
551a5cba4b
optimize test area search
2021-07-09 22:02:15 -07:00
myk002
232c85d258
use lua to blueprint to avoid console spam
2021-07-09 22:02:15 -07:00
myk002
0e270a3505
be sure to reset border tiles between tests
2021-07-09 22:02:15 -07:00
myk002
c2b92ce6a0
use new dig-now and tiletypes-here APIs
2021-07-09 22:02:15 -07:00
myk002
21a4f64cdd
ensure test loads when game is not in fort mode
...
even if the test is not being run
2021-07-09 22:02:14 -07:00
myk002
73413038df
add quickfort ecosystem functional test harness
...
and a few initial tests
2021-07-09 22:02:14 -07:00
lethosor
1014c41db6
Add context to some loops in tests
2021-07-05 20:49:25 -04:00
lethosor
898d4621da
Merge remote-tracking branch 'myk002/myk_view_unit' into develop
2021-07-05 20:42:49 -04:00
myk002
f1bcf0c7b5
make dwarfmode test not require autocorrection
2021-07-05 16:05:12 -07:00
myk002
4eb8870797
add unit tests
2021-07-05 16:02:19 -07:00