Commit graph

8978 commits

Author SHA1 Message Date
Max Rossmannek
2931be613b
Enforce Python 3 in test_hooks/wrapper
This change was not included in the previous commit because the sed
command I used included the `/usr/bin/env` path to ensure I don't
replace any occurences of the word `python` which I did not wish to
replace.
2020-12-06 10:01:09 -05:00
Max Rossmannek
6d2ecaa15c
Enforce Python 3 for unittests
This commit updates all tests to enforce the Python3 executable. This is
necessary because the `assertRegex` function we use was renamed to this
name only in Python 3.2 [1]

For reference:
s;/usr/bin/env python;/usr/bin/env python3;g

[1]: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex
2020-12-06 10:00:59 -05:00
Tomas Babej
a8c215774b
tests: Implement mechanism for expected failures in C++ tests
Implements detection of unexpected successes and expected failures. Both
classes are represented in the TAP output as 'not ok', unexpected
successes with '# FIXED' metadata and expected failures as '# TODO'.

This brings C++ tests to feature parity with Python-based ones when it
comes to expected failures and unexpected successes.
2020-12-06 09:56:37 -05:00
Max Rossmannek
0ae2f2a5fd Revert "Poor implementation of linewrap restored to task"
This reverts commit 64243e6ec1.
2020-12-06 09:45:30 -05:00
Tomas Babej
9f5a38df60
NEWS: Remove 2.5.2 content, put placeholders for 2.5.3 2020-12-05 18:19:24 -05:00
Tomas Babej
5e30a65689
CMake: Bump version number to 2.5.3 2020-12-05 18:16:58 -05:00
Tomas Babej
c1de01d594
ChangeLog: Update the current release 2020-12-05 17:48:45 -05:00
Tomas Babej
2dd21de678
Merge branch '2.5.2' into master 2020-12-05 17:46:20 -05:00
Tomas Babej
b0c17d1163
holidays: Update holidays using newest holidata.net data
Remove outdated holiday files that could not be updated.
2020-12-05 17:11:36 -05:00
Tomas Babej
36d13508d4
CMake: Also ignore .travis for the tarball build 2020-12-05 16:59:14 -05:00
Tomas Babej
fdc290c546
CMake: Exclude .github directory 2020-12-05 16:51:54 -05:00
Tomas Babej
cd1d42bc9d
tests: Mark failing corner case tests as expected for 2.5.2 2020-12-05 16:40:28 -05:00
Leo
643166a337 Uncoditionally include errno.h instead of guessing
POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning

(cherry picked from commit 041248e7cc)
2020-11-30 00:53:20 -05:00
John Nguyen
4c714e10a3 Fix typo in man page
The example for _unique has typo, should be using attribute for project.
Fixes #2277

(cherry picked from commit cf45f28cc0)
2020-11-30 00:53:20 -05:00
Tomas Janousek
b6910b9428 Add missing "QUARTER" to feedback_reserved_tags
A while ago I noticed that 630a1530e0 only
added the QUARTER virtual tag to src/Task.cpp, and when I checked that
again today, it was still missing from src/feedback.cpp, so I'm fixing
that.
2020-11-24 18:46:53 -05:00
mrossinek
4f14b8923f Fix variant_subtract test case after PR #2095 2020-11-24 08:12:39 -05:00
Tomas Babej
1417be626f TW-1511: Interpret string subtraction as concanetation with a dash
Fixes #1537 (previously known as TW-1511).
2020-11-24 08:12:39 -05:00
Max Rossmannek
cad9a4f834 Update diag.t to correct C++ version
The default C++ version was updated in 4729876 and this commit reflects
this change in the test.
2020-11-24 08:12:39 -05:00
mrossinek
ca1e2a5a6b Mark project.t 1455 as expected failure 2020-11-24 08:12:39 -05:00
Tomas Babej
79e076c3c0 tests: Use updated unittest method 2020-11-24 08:12:39 -05:00
mrossinek
7d567c3ac9 Fix wait.t to correct expected output 2020-11-24 08:12:39 -05:00
Tomas Babej
351965a87b
Update copyright to 2020 2020-11-21 12:43:40 -05:00
Tomas Babej
d1b867f7b5
tests: Do not require line buffering
Test runner complains about it not being supported with binary files and
it does not look like it affects any tests in the first place anyway.
2020-11-21 12:41:18 -05:00
Tomas Babej
52c49169b4
tests: Use updated unittest methods 2020-11-21 12:39:03 -05:00
Tomas Babej
720c561b75
tests: Use updated Thread object API
Replace isAlive with is_alive as the former is no longer supported in
Python 3.9.
2020-11-21 12:38:14 -05:00
Leo
041248e7cc Uncoditionally include errno.h instead of guessing
POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning
2020-11-21 12:27:29 -05:00
Tomas Babej
3855ba9136
travis: Disable testing on gentoo
We would love to test on gentoo, but this currently breaks CI. Open to
community contributions to improve our coverage of this distrubition.
2020-11-21 00:59:35 -05:00
Paul Beckingham
4729876714 Updated build to use C++17 by default 2020-11-20 17:47:13 -05:00
Paul Beckingham
4ae73ba871 Updated libshared for bug fix 2020-11-20 17:36:01 -05:00
Tomas Babej
10b64adb58
CmdAdd: Make sure a UUID is printed if ID does not exist
This fixes a regression was introduced in
4e80d5d5fd.

Currently, if a user (with default configuration) adds a completed or
deleted task, they do not get a confirmation message ("Created task
..."). This is due to the fact that:
a) new-uuid is not set by default
b) new-id is set by default, but only prints message if the added task
   is in pending or waiting state

Make sure to print a message containing UUID reference if the newly
added task is in completed or deleted state.
2020-09-18 00:24:50 -04:00
John Nguyen
cf45f28cc0 Fix typo in man page
The example for _unique has typo, should be using attribute for project.
Fixes #2277
2020-05-17 09:48:24 +02:00
0xACE
64243e6ec1 Poor implementation of linewrap restored to task
This addresses #2023

For many years linewrap has been broken in taskwarrior, rendering the
application basically useless in terminals with short widths and tasks
containing URLs in them... This janky line wrap patch sort of works but
introduces other minor graphical glitches.

But seeing as no one took the time to fix it over the years, here some a
small salvation to those who suffer as much as me.

One problem of this patch is, when a line is wrapped, it may be 1 column
smaller than the terminal width, resulting in each line not fully
utilizing the terminal width.

This patch is not polished and could probably need to be tended by
someone who cares more.
2020-03-12 10:40:24 -04:00
Paul Beckingham
e186d375dc Issue 2091: duration of task is set to a wrong and extremely big value
- Thanks to Wray Zheng.
2019-08-11 19:57:52 -04:00
Paul Beckingham
04bc1a7998 - Thanks to Adrien Lemaire. 2019-08-11 14:01:22 -04:00
Doron Behar
82ed5d35b7 Truely remove priority from hardcoded attrributes 2019-05-20 09:43:24 -04:00
Doron Behar
e1998346e1 Complete attributes dynamically incl UDAs
This is the major refinement of the completion: Most of it just moved
the global variables from up above to inside _task_filter so every array
of attributes will be calculated dynamically there.
2019-05-20 09:43:24 -04:00
Doron Behar
f04d66e10b Fix small TODO and move main function to bottom 2019-05-20 09:43:24 -04:00
Doron Behar
da49dbdd84 Add TODOs to make zsh completion awesome 2019-05-20 09:43:24 -04:00
Paul Beckingham
ac97523275 libshared: Upgraded to 4178b49db1c5fed5006a4ab6aa2df3f9937f770b 2019-04-26 20:54:16 -04:00
Paul Beckingham
fb97883bef Build: Do not set CMP0037 on CMake 3.11.0 and above
- This policy is no longer necessary because CMake issue #16062, which caused
  incorrect warnings to be shown, has been resolved in 3.11.0.
- Thanks to Janik Rabe
2019-04-26 20:45:46 -04:00
Paul Beckingham
415ce36861 Updated AUTHOR and Changelog 2019-04-14 19:47:52 -04:00
Paul Beckingham
18395a8dc0 - Thanks to Chad Phillips 2019-04-14 19:47:41 -04:00
Chad Phillips
2ac1787dae JSON encode/decode string UDAs
Previously, multiline string UDAs were not preserved when editing
a task via 'task X edit'. String UDAs are now JSON encoded/decoded
during the edit cycle to allow preservation of multiline
2019-04-14 19:45:58 -04:00
Lionel Miller
62944f3c7d Workaround for alias grep=rg in fish 2019-04-14 19:45:54 -04:00
mrossinek
f06eb12d10 Add unit test 2019-04-14 19:45:13 -04:00
mrossinek
0e58226f3b Fix #1999 2019-04-14 19:45:11 -04:00
mrossinek
2821c5ac44 Add missing newline 2019-04-14 19:45:04 -04:00
mrossinek
b0c9bf6c8d Fix #2002 2019-04-14 19:44:35 -04:00
Paul Beckingham
b87703eb39 Tests: REmoved check for absence of a segfault
- Testing for the absence of a segfault is not a good test.
2019-03-03 10:50:49 -05:00
Paul Beckingham
863038905c Tests: Version test removed
- Veriying that the diag  command emits the correct commit SHA1 creates
  sporadic failures when CMake has not been run against the current
  commit, and this is not a good test.
2019-03-03 10:34:09 -05:00