David Tolnay
25a53f10db
Move serde_test out to serde-rs/test
2023-07-25 22:48:39 -07:00
David Tolnay
2ef1cd4b35
Import macros exclusively through serde_derive in test suite
...
This makes it easier to execute tests against the precompiled serde_derive.
2023-07-19 09:08:05 -07:00
David Tolnay
1920b694aa
Declare required automod dev-dependency
...
1.0.0 does not work with workspaces.
error: No such file or directory (os error 2)
--> test_suite/tests/regression.rs:2:5
|
2 | automod::dir!("tests/regression");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `automod::dir` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-07-06 15:50:32 -07:00
David Tolnay
ce86f351d6
Make a directory dedicated to regression tests
...
I have had a good experience with this pattern in many of my other
libraries.
2023-03-08 19:02:42 -08:00
David Tolnay
f85c4f2fa9
Delete unused toolchain_find dependency
...
Unused since bac90d19b9
.
2023-02-10 19:29:34 -08:00
David Tolnay
b7be637e8c
Test_suite crate no longer has a build.rs
2023-01-14 12:18:11 -08:00
David Tolnay
30c4aa2cf4
Delete more macro test remnants
2023-01-14 12:15:20 -08:00
David Tolnay
a649190a4d
Delete macro expand tests
...
So far I haven't ended up being that pleased with the value proposition
of these tests.
2023-01-14 12:09:05 -08:00
David Tolnay
3ffb86fc70
Ui test changes for trybuild 1.0.66
2022-10-04 22:28:38 -07:00
David Tolnay
a925ce4119
Sort package entries in Cargo.toml
2022-07-31 19:19:07 -07:00
David Tolnay
bac90d19b9
Update macrotest to 1.0.9 and enable in CI
2022-06-20 03:40:49 -07:00
David Tolnay
bc3f24e0e9
Update toolchain_find dependency to 0.2
2022-06-06 16:09:14 -07:00
David Tolnay
999c261d11
Ui test changes for trybuild 1.0.49
2021-10-08 02:46:15 -04:00
David Tolnay
e3d871ff7b
Opt in to experimental trybuild diffs
2020-10-31 13:28:19 -07:00
David Tolnay
115c1b4830
Exclude expansion tests from test suite by default
...
This test isn't high enough signal to have all contributors run it.
2020-05-05 21:52:37 -07:00
David Tolnay
23db3a41e7
Run expansion tests only if rustfmt is present
2020-05-05 21:50:14 -07:00
David Tolnay
732544aed6
Update to macrotest 1.0
2020-05-05 17:23:30 -07:00
David Tolnay
65dfa607c8
Update to rustversion 1.0
2020-05-05 17:23:30 -07:00
Evgenii P
9a0e4e0176
Ignore expansion test if cargo-expand subcommand isn't present
2019-11-03 20:31:08 +08:00
Evgenii P
dc6dbba47c
Implement derive macros expansion tests using macrotest
2019-11-01 02:32:06 +08:00
David Tolnay
44fa7b0f6b
Remove unused rustc-serialize dependency from test suite
2019-10-04 21:29:06 -04:00
David Tolnay
bc7a85063d
Switch to rustversion
2019-07-07 21:14:11 -07:00
David Tolnay
1e9ae88f53
Work around "failed to select a version for serde_test_suite"
...
Without this:
error: failed to select a version for `serde_test_suite`.
... required by package `serde_test_suite-tests v0.0.0`
versions that meet the requirements `= 0.0.0` are: 0.0.0
the package `serde_test_suite-tests` depends on `serde_test_suite`, with features: `serde` but `serde_test_suite` does not have these features.
failed to select a version for `serde_test_suite` which could resolve this conflict
Seems like a Cargo bug -- I will minimize and report.
2019-05-06 22:53:38 -07:00
David Tolnay
140f9beee7
Switch ui tests to trybuild
2019-05-06 10:25:47 -07:00
David Tolnay
294dccc5be
Update test suite to 2018 edition
2018-12-31 21:53:37 -05:00
David Tolnay
ab3f4971f0
Move compiletest out of the unstable feature flag
2018-12-31 21:28:39 -05:00
David Tolnay
a51f831ae4
Drop nightly dependency of compiletest
2018-10-27 23:59:48 -07:00
David Tolnay
23a53d8008
Remove unused proc-macro2 dependency in test suite
2018-09-15 15:12:47 -07:00
David Tolnay
b5f083e6f4
Update test suite to proc-macro2 0.4
2018-05-21 09:23:00 -07:00
Alex Crichton
b1c1d964e1
Update to syn/quote/proc-macro2 new apis
2018-03-29 00:54:05 -07:00
David Tolnay
b313f947dc
Use call_site as the span of unnamed member access
2018-01-09 20:28:23 -08:00
David Tolnay
56d5d7f761
Rename deserialize_from to deserialize_in_place
2017-12-17 10:46:44 -08:00
David Tolnay
a93f2ebff0
Enable deserialize_from in the test suite
2017-12-10 22:46:25 -08:00
David Tolnay
c650a92bf7
Update to compiletest-rs 0.3 to fix "every suggestion should have at least one span"
2017-11-24 17:12:58 -08:00
David Tolnay
e4ea2a56e9
Serialize unsized Arc and Rc
2017-09-04 10:31:03 -07:00
David Tolnay
2d465415c5
Take credit
2017-04-20 08:13:46 -07:00
David Tolnay
dd6989d551
Actually run unstable tests
2017-03-08 21:02:15 -08:00
David Tolnay
75e6da02d3
Split up test suite so it compiles in parallel
2017-02-24 15:39:18 -08:00
David Tolnay
89cbb81673
Include readme and licenses in crates.io archive
...
Fixes #772 .
2017-02-20 21:11:57 -08:00
Oliver Schneider
368784949e
move to cargo clippy instead of using the clippy plugin ( #733 )
...
* move to cargo clippy instead of using the clippy plugin
fixes #729
* non-exectable scripts must be run with `sh`
* don't build serde in the clippy travis job
* only run clippy tests if installing clippy succeeds
* why is travis so picky?
* no more serde_codegen
* serde_test_suite_deps has no features
* don't use empty loops, llvm optimizes them to undefined behaviour
* abort the clippy job when clippy lints are triggered
* use caches on travis to speed up builds
* why are we even using `travis-cargo`?
* need to reinstall clippy frequently due to nightly updates
* command line tools are hard
2017-01-31 09:09:37 -08:00
David Tolnay
7a2bfdc1dd
Consistent underscores in root directory
2017-01-25 20:45:33 -08:00