Skip to content

Commit

Permalink
Remove substrate_test_utils::test (paritytech#1321)
Browse files Browse the repository at this point in the history
* Directly use tokio::test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove old code

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Delete substrate-test-utils-test-crate

Also not needed anymore.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
ggwpez and bkchr authored Aug 31, 2023
1 parent 69a141a commit e6aa069
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 256 deletions.
1 change: 0 additions & 1 deletion substrate/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
futures = "0.3.16"
tokio = { version = "1.22.0", features = ["macros", "time"] }
substrate-test-utils-derive = { path = "derive" }

[dev-dependencies]
trybuild = { version = "1.0.74", features = [ "diff" ] }
Expand Down
19 changes: 0 additions & 19 deletions substrate/test-utils/derive/Cargo.toml

This file was deleted.

73 changes: 0 additions & 73 deletions substrate/test-utils/derive/src/lib.rs

This file was deleted.

20 changes: 0 additions & 20 deletions substrate/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,6 @@

//! Test utils

#[doc(hidden)]
pub use futures;
/// Marks async function to be executed by an async runtime suitable to test environment.
///
/// # Requirements
///
/// You must have tokio in the `[dev-dependencies]` of your crate to use this macro.
///
/// # Example
///
/// ```
/// #[substrate_test_utils::test]
/// async fn basic_test() {
/// assert!(true);
/// }
/// ```
pub use substrate_test_utils_derive::test;
#[doc(hidden)]
pub use tokio;

/// Panic when the vectors are different, without taking the order into account.
///
/// # Examples
Expand Down
17 changes: 0 additions & 17 deletions substrate/test-utils/test-crate/Cargo.toml

This file was deleted.

25 changes: 0 additions & 25 deletions substrate/test-utils/test-crate/src/main.rs

This file was deleted.

49 changes: 0 additions & 49 deletions substrate/test-utils/tests/basic.rs

This file was deleted.

23 changes: 0 additions & 23 deletions substrate/test-utils/tests/ui.rs

This file was deleted.

24 changes: 0 additions & 24 deletions substrate/test-utils/tests/ui/too-many-func-parameters.rs

This file was deleted.

5 changes: 0 additions & 5 deletions substrate/test-utils/tests/ui/too-many-func-parameters.stderr

This file was deleted.

0 comments on commit e6aa069

Please sign in to comment.