We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a5b22 commit accf8cdCopy full SHA for accf8cd
test-virtual/wrkspc-test/integration/main.rs
@@ -1,5 +1,7 @@
1
pub mod tests;
2
3
+use tests::IntegrationTest;
4
+
5
fn setup() {
6
println!("Setup")
7
}
@@ -11,7 +13,10 @@ fn main() {
11
13
// Setup test environment
12
14
setup();
15
- // TODO: Run the test
16
+ // Run the tests
17
+ for t in inventory::iter::<IntegrationTest> {
18
+ (t.test_fn)()
19
+ }
20
21
// Teardown test environment
22
teardown();
test-virtual/wrkspc-test/integration/tests/basic.rs
@@ -0,0 +1,10 @@
+use super::IntegrationTest;
+fn basic_test() {
+ println!("Running basic test")
+}
+inventory::submit!(IntegrationTest {
8
+ name: "basic",
9
+ test_fn: basic_test
10
+});
test-virtual/wrkspc-test/integration/tests/mod.rs
@@ -1,3 +1,5 @@
+pub mod basic;
#[derive(Debug)]
pub struct IntegrationTest {
pub name: &'static str,
0 commit comments