Tomas Babej
3289f93073
tests: Adjust comment
...
The recurrence period is 1m=P30D.
2022-12-18 15:23:55 -05:00
Dustin J. Mitchell
6e5d8b1dde
fix recurrence test to avoid wasting a lot of time
2022-12-18 14:21:10 -05:00
Tomas Babej
19f183159e
tests: Fail OS-X test workflow on error in the build process
...
This sets `set -e` to ensure any errors in the test script are
propagated upwards and noticed by the Github workflow.
Prior to these changes failures in the build process of the tests would
be ignored, and the success / failure would be determined purely by the
return code of the `./problems` script.
2022-12-18 14:19:56 -05:00
Dustin J. Mitchell
9e5c0001c4
Skip incorrectly-passing tests (see #2996 )
2022-12-18 12:59:28 -05:00
Dustin J. Mitchell
dbeee0640a
Add a hint to 'make test' see test problems
2022-12-18 12:01:12 -05:00
Dustin J. Mitchell
f5f37009cb
Ignore patch updates for some noisy deps
2022-10-26 17:22:12 -04:00
Dustin J. Mitchell
69850e5f6a
[tests] Make sure waiting task is still waiting
...
10s is gone in an instant in a busy CI box, which is probably why this
test is failing on Macs.
2022-08-10 23:38:04 -04:00
Dustin J. Mitchell
12ecfa2b1e
rename rust/ to taskchampion/
2022-07-29 21:41:41 -04:00
Dustin J. Mitchell
6f7c5c31a9
install Rust on each push in docker images
2022-07-29 21:41:41 -04:00
Dustin J. Mitchell
8c30400af3
Add a C++ wrapper around TC FFI
...
This uses CMake to build a simple Rust library (in `src/tc/rust`) that
just re-exports everything from the `taskchampion-lib` crate.
The C++ wrappers then wrap this into C++ objects with proper lifecycle
maintenance, in the `tc` namespace.
The C++ wrappers are incomplete, and missing methods are tagged with
"TODO". These will be added as needed.
2022-07-29 21:41:41 -04:00
Dustin J. Mitchell
e3ef6c504a
remove TBD2::clear, only used in tests
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
271d06cd9c
make TDB2.pending/completed non-public
...
References to methods on these fields are replaced with methods on TDB2,
several of which already existed.
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
4ebd0ffb39
make TDB2.undo non-public
...
The stats command calls an API to provide this information in a way that
will still be relevant for TaskChampion, while CmdInfo's access to the
data remains. The TaskChampion interface for per-task hitsory is still
not ready.
2022-07-24 14:18:21 -04:00
Tomas Babej
2f30bc8cbf
tests: Add dockerfile for Ubuntu 22.04
2022-07-24 13:58:10 -04:00
Tomas Babej
08d647102f
tests: Remove Ubuntu 21.04 and 21.10 from the test matrix
...
Both releases are beyond their respective EoL [1].
[1]: https://wiki.ubuntu.com/Releases
2022-07-24 13:58:10 -04:00
Dustin J. Mitchell
c8cfcec48b
Make TDB2.backlog non-public
...
The stats command gets this information from an API that will also work
for TaskChampion. The sync command still accesses the field directly,
as the command must be completely rewritten for TaskChampion.
2022-06-21 12:05:50 -04:00
Tomas Babej
e60fdafdaa
centos8: Fix missing repo metadata
2022-02-11 00:40:31 -05:00
Tomas Babej
0cc2de6179
tests: Add a test for handling short UUIDs in the depends column
2022-01-19 20:11:41 -05:00
Dustin J. Mitchell
28e268bd26
fix parsing invalid depends from server
...
The data from the server is read via Task::parseJSON, not Task::parse.
This also reverts the tests for Task::parse, and adds new tests for this
specific issue.
2022-01-19 19:34:45 -05:00
Dustin J. Mitchell
7321febe4f
A more thorough fix to corruption of the depends property
2022-01-19 19:34:45 -05:00
Dustin J. Mitchell
96d6c1df9f
Add special case for taskserver mis-formatting of depends
2022-01-16 15:36:21 -05:00
Tomas Babej
cb058f2e4b
tests: Remove Ubuntu 20.10 (now beyond EOL) from the test matrix
2022-01-05 21:01:21 -05:00
Dustin J. Mitchell
c564bbc0b7
fix test to pass at the end of the year
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
e98b61f2b5
test for dashes in proj without incidentally testing DOM references in 'task add'
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
3a61289f6c
replace a use of Task::data in tests
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
dede40bc4e
Replace direct Task.data access with a temp getter (syntactic refactor)
...
Now this getter, `data_removeme`, can easily be grepped out and
replaced, one usage at a time in small PRs.
2021-12-16 23:03:44 -05:00
Tomas Babej
8074e509ba
tests: Add bulk removal test for tags attribute
2021-11-22 15:51:27 +01:00
Tomas Babej
af10774aec
tests: Add bulk removal test for depends attribute
2021-11-22 15:51:27 +01:00
Dustin J. Mitchell
3937f1efb0
Don't look for a specific sha when testing task version
...
This allows tests to pass even with a dirty working copy or when running
tests via `git rebase`.
2021-11-21 23:34:46 +01:00
Tomas Babej
3c2b74a36f
tests: Remove expected failure for ID-range based dependencies
2021-11-20 15:19:34 -05:00
Tomas Babej
caf0f9db3e
tests: Clarify we're testing OpenSUSE 15.x rolling
2021-11-06 13:08:51 -04:00
Tomas Babej
da43078eba
tests: Add Ubuntu 21.10 into the test matrix
2021-11-06 12:59:16 -04:00
Tomas Babej
6fae705b43
tests: Add Ubuntu 20.10 into the test matrix
2021-11-06 12:57:26 -04:00
Tomas Babej
e4f1e05c1d
tests: Add Fedora 35 into the test matrix
2021-11-06 12:54:46 -04:00
Tomas Babej
4559287d07
tests: Remove tests on F31
...
This distribution release is more than a year out of its support window.
2021-11-06 12:52:24 -04:00
Tomas Babej
ed4b932530
tests: Add test to cover invalid contexts due to tag exclusion
2021-11-06 11:58:47 -04:00
Tomas Babej
f0f704fc99
tests: Fix copy-paste error
...
The context name in these two tests was invalid in some assertions.
2021-11-06 11:58:46 -04:00
Tomas Babej
df75d1ce43
test: Add tests for parsing ID ranges of various sizes
2021-10-18 23:46:45 -04:00
Tomas Babej
6a79e614da
tests: Expand test for waiting report
...
Add tasks to test exclusion of completed and deleted tasks.
2021-10-16 11:11:45 -04:00
Tomas Babej
3b37dc2480
tests: Adjust test description
2021-10-16 11:02:38 -04:00
Tomas Babej
3840c4e768
tests: Add test for UDA Orphan identification
2021-10-16 10:22:34 -04:00
Tomas Babej
f6d9837b07
tests: Add test for legacy context interpretation
2021-10-14 22:36:11 -04:00
Tomas Babej
c010855bac
Merge branch '2.6.0'
2021-10-02 22:04:54 -04:00
Tomas Babej
ac309b4ff1
tests: Skip the diagnostics test on Ubuntu 16.04
...
This is a byproduct of recent bump to C++17 compliant compilers. Ubuntu
16.04 does not have C++17 compliant compiler, but it's still useful to
for us to test 2.5.3 there as the branch does not actually use any of
the C++17 features not available on gcc on Ubuntu.
2021-10-02 21:32:21 -04:00
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