Tomas Babej
c2ba93cb61
tests: Ensure the git tag version check does not run for tarball builds
...
Do not try to determine the latest git tag if we're not in a git
repository in the first place.
2021-10-02 18:27:58 -04:00
Tomas Babej
4d85031b90
tests: Ensure tests are run with news.version set to 2.6.0
...
No tests were failing due to the footnote but its better to be safe than
sorry.
2021-10-02 18:06:12 -04:00
Tomas Babej
967bf18188
tests: Add test for TW #2386
2021-09-25 20:25:53 -04:00
Tomas Babej
37f26be3ad
tests: Add test for TW #2388
2021-09-25 20:25:53 -04:00
Tomas Babej
16c5a58843
tests: Add test for detection of invalid write contexts
2021-09-18 14:15:47 -04:00
Tomas Babej
690d00c8c5
tests: Update test expectations in context.t to account for write context
...
These changes make the tests a bit more wholesome by checking
configuration variables for the write context as well.
2021-09-18 14:15:47 -04:00
Tomas Babej
5bbb1697af
tests: Remove expected failure
...
Hyphenation for long words now works as expected.
2021-09-16 07:33:53 -04:00
Tomas Babej
a5d5a025b7
tests: Make sure test accessing header output have correct verbosity tokens
...
This change was needed because the information about the default command
is no longer part of the default output.
2021-09-16 07:15:54 -04:00
DanielMowitz
c6be724a96
Changed burndown test so it doesn't block forever
2021-09-11 13:56:03 -04:00
DanielMowitz
bad672dc0a
Update burndown.t
...
Fixed indentation error.
2021-09-11 13:56:03 -04:00
DanielMowitz
cb07e93ddd
Changed configuration option name and added documentation.
2021-09-11 13:56:03 -04:00
DanielMowitz
1d804ae7c8
Implemented non-cumulative burndown reports and added a test for them.
2021-09-11 13:56:03 -04:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Dustin J. Mitchell
309e99d49e
Refactor task diffs to handle new attributes
...
This refactors task(Info)Differences to be methods of Task and to
correctly handle the `annotation_`, `tags_`, and `dep_` attributes.
2021-09-04 10:49:45 -04:00
Dheepak Krishnamurthy
9ce366ddab
task <filter> export [<report>]
2021-08-29 12:48:18 -04:00
Tomas Babej
2619435148
tests: Add test for TW-2189
2021-08-28 21:01:29 -04:00
Tomas Babej
4f14c529b0
tests: Add test for TW #2577
...
This is already fixed on 2.6.0 thanks to #2405 , but it never hurts to
have more tests.
Closes #2577 .
2021-08-21 09:53:46 -04:00
Bharatvaj H
05904549a0
Fixes #2580
...
Check annotations field before parsing
Add test case for annotations
2021-08-21 08:28:43 -04:00
Tomas Babej
48bf64a501
tests: Add test for report.<name>.context variable
2021-08-21 08:25:06 -04:00
Tomas Babej
1f76856579
tests: Add test for TW #2581
2021-08-21 01:06:55 -04:00
Dustin J. Mitchell
20af583e21
Refactor to store dependencies as individual attributes
...
This also drops support for the transitional `json.depends.array`
configuration value, which has not been necessary since ~2016.
As with tags, dependencies are stored in both a "combined",
comma-separated format (for compatibility) and in an
attribute-per-dependency format (for the future).
2021-08-17 20:36:54 -04:00
Tomas Babej
7fb457d892
test: Add tests for TW #2550
2021-08-15 22:50:55 -04:00
Tomas Babej
b467049720
tests: Add tests for TW #1913
2021-08-14 18:09:54 -04:00
Tomas Babej
2c44f79277
tests: Make sed/wc calls in tw-2563 compatible with OS-X'
...
The sed does not support -i flag in the same way. The wc -l prints
whitespace in front, which needs to be stripped.
2021-08-08 14:27:25 -04:00
Tomas Babej
b6ce51e83d
tests: Reverse expectations for wait attribute removal uponn done/delete
...
The wait attribute is no longer expected to be removed by the
done/delete commands.
2021-08-08 14:27:25 -04:00
Tomas Babej
0c22823771
tests: Ensure virtual tags +PENDING and +WAITING are working as before TW-2563
2021-08-08 14:27:25 -04:00
Tomas Babej
7d81eadd5a
tests: Add test for the migration path from 2.5.3
2021-08-08 14:27:25 -04:00
Dustin J. Mitchell
901283c79f
[WIP] make 'waiting' status a 'virtual' status
2021-08-08 14:27:25 -04:00
Dustin J. Mitchell
20041c120e
Refactor to store tags as individual attributes
...
Each tag is stored as `tag_<tagname>: x`. The `x` is required because
empty attributes are treated as nonexistent.
For compatibility, the `tags` attribute is updated in sync with the
per-tag attributes. This compatibility support may be dropped in later
versions.
Note that synchronization _updates_ use JSON format, which does not
change with this patch, and thus no compatibility issues exist. The
synchronization _initialization_, however, uses FF4, meaning that a
sync server initialized from a version of `task` with this patch will
contain `tag_<tagname>` attributes, which will look like orphaned UDAs
to older versions. However, as updates to tasks are synchronized via
the sync server, the updates will not contain these attributes and they
will show as "deleted" in the `task info` display on the older version.
Aside from the noise in the `task info` output, this is harmless.
2021-08-05 02:11:27 -04:00
Rosen Penev
5c137f5c8f
use emplace
...
Allows removing the constructor name as emplace forwards the arguments
directly.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-05 02:03:59 -04:00
Tomas Babej
9b8cbace45
tests: Add test for TW #2247
2021-07-31 14:23:22 -04:00
Korrat
b33a99a748
Nag based on task state before modification
...
With this patch, taskwarrior uses the urgency of tasks before any
modifications are applied when deciding whether to show nag messages.
Previously, taskwarrior would apply modifications before deciding
whether to show nag messages, which could lead to spurious nag messages
when completing an active task.
2021-07-30 18:56:25 -04:00
sebu06
90bc7f4b23
Fixed rendering of countdown columns
...
Countdown columns were counting up days instead of down.
2021-07-19 20:07:30 -04:00
Scott Mcdermott
178c17d032
tests: Add tests for bug #2519
2021-07-18 09:45:00 -04:00
Scott Mcdermott
07e2c23a91
tests: Add test cases for 'by' date attribute modifier
2021-07-18 09:45:00 -04:00
Tomas Babej
79c860053b
tests: Add a regression test for #2530
2021-07-10 07:24:57 -04:00
Tomas Babej
fb208cf494
tests: Fix incorrect test constant
2021-07-03 10:47:38 -04:00
Tomas Babej
11b85373ee
tests: 'eoy' is the last second of the year
2021-07-03 10:47:38 -04:00
Tomas Babej
d76b4e0d86
tests: Add test for TW #2514
2021-06-26 14:38:18 -04:00
Tomas Babej
88eca5f535
tests: Add test for TW #1804
2021-06-23 00:13:03 -04:00
Tomas Babej
3bf714e715
tests: Add test for TW #1938
2021-06-19 12:29:41 -04:00
Tomas Babej
c8560a8c96
test: Make all tests executable
2021-06-19 12:29:41 -04:00
Tomas Babej
8f16824538
tests: Add test for partial operator over date/string pairs
2021-06-12 15:49:06 -04:00
Tomas Babej
b7541571b5
test: Replace cmake3 with cmake for CentOS builds
2021-06-06 00:27:39 -04:00
oxalica
3c402d4fb7
Prefer /usr/bin/env and searching from PATH
2021-06-02 19:35:18 -04:00
Vladimir Rusinov
e762306563
Add a test for capitalized months and days of the week.
...
The change was implemented in
https://github.com/GothenburgBitFactory/libshared/pull/33 .
This change adds validation in TaskWarrior.
Fixes:
* https://github.com/GothenburgBitFactory/taskwarrior/issues/2160
* https://github.com/GothenburgBitFactory/taskwarrior/issues/2364
2021-05-29 10:36:25 -04:00
Rosen Penev
ab7f5b0b51
clang-tidy: loop conversion
...
Found with modernize-loop-convert
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 09:13:22 -04:00
Tomas Babej
6aa46e7d1a
ci: Test on Ubuntu 21.04
2021-04-22 00:02:37 -04:00
Tomas Babej
70815edb8a
ci: Test on Fedora 34
2021-04-22 00:02:37 -04:00
DanielMowitz
277373ba89
Added tests for single and multiday holidays.
2021-04-21 22:23:00 -04:00