Skip to content

Commit c0654b3

Browse files
committed
Depend on trybuild from crates.io
1 parent 1ea2bbf commit c0654b3

File tree

28 files changed

+17
-899
lines changed

28 files changed

+17
-899
lines changed

.template/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "tests"
1313
path = "tests/progress.rs"
1414

1515
[dev-dependencies]
16-
workshop-test-runner = { path = "../test-runner" }
16+
trybuild = "1.0"
1717

1818
[dependencies]
1919
# TODO

.template/tests/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[test]
22
fn tests() {
3-
let t = workshop::TestCases::new();
3+
let t = trybuild::TestCases::new();
44

55
// TODO: add tests
66
//

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,10 @@ detect a problem at compile time; Cargo isn't able to say that failing to
334334
compile is considered a success, and isn't able to compare that the error
335335
message produced by the compiler is exactly what we expect.
336336

337-
The project skeletons in this repository use a custom test harness written
338-
specifically for my procedural macros workshop at the 2019 Rust Latam
339-
conference, though potentially useful elsewhere with a bit of work.
337+
The project skeletons in this repository use an alternative test harness called
338+
[trybuild].
339+
340+
[trybuild]: https://github.com/dtolnay/trybuild
340341

341342
<p align="center">
342343
<a href="#test-harness">
@@ -346,8 +347,7 @@ conference, though potentially useful elsewhere with a bit of work.
346347

347348
The test harness is geared toward iterating on the implementation of a
348349
procedural macro, observing the errors emitted by failed executions of the
349-
macro, and testing that those errors are as expected. The source of the test
350-
harness can be found under the <kbd>test-runner</kbd> directory.
350+
macro, and testing that those errors are as expected.
351351

352352
<br>
353353

bitfield/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "tests"
1010
path = "tests/progress.rs"
1111

1212
[dev-dependencies]
13-
workshop-test-runner = { path = "../test-runner" }
13+
trybuild = "1.0"
1414

1515
[dependencies]
1616
bitfield-impl = { path = "impl" }

bitfield/tests/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[test]
22
fn tests() {
3-
let t = workshop::TestCases::new();
3+
let t = trybuild::TestCases::new();
44
//t.pass("tests/01-specifier-types.rs");
55
//t.pass("tests/02-storage.rs");
66
}

builder/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "tests"
1313
path = "tests/progress.rs"
1414

1515
[dev-dependencies]
16-
workshop-test-runner = { path = "../test-runner" }
16+
trybuild = "1.0"
1717

1818
[dependencies]
1919
# TODO

builder/tests/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[test]
22
fn tests() {
3-
let t = workshop::TestCases::new();
3+
let t = trybuild::TestCases::new();
44
//t.pass("tests/01-parse.rs");
55
//t.pass("tests/02-create-builder.rs");
66
//t.pass("tests/03-call-setters.rs");

debug/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "tests"
1313
path = "tests/progress.rs"
1414

1515
[dev-dependencies]
16-
workshop-test-runner = { path = "../test-runner" }
16+
trybuild = "1.0"
1717

1818
[dependencies]
1919
# TODO

debug/tests/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[test]
22
fn tests() {
3-
let t = workshop::TestCases::new();
3+
let t = trybuild::TestCases::new();
44
//t.pass("tests/01-parse.rs");
55
//t.pass("tests/02-impl-debug.rs");
66
//t.pass("tests/03-custom-format.rs");

seq/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "tests"
1313
path = "tests/progress.rs"
1414

1515
[dev-dependencies]
16-
workshop-test-runner = { path = "../test-runner" }
16+
trybuild = "1.0"
1717

1818
[dependencies]
1919
# TODO

0 commit comments

Comments
 (0)