File tree 3 files changed +19
-8
lines changed
3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ default = []
10
10
11
11
test-feature = []
12
12
13
+ [dependencies ]
14
+ inventory = " 0.2.2"
15
+
13
16
[dev-dependencies ]
14
17
macrotest = { path = " ../../" }
15
- inventory = " 0.2.2"
16
18
17
19
[[test ]]
18
20
name = " workspace-tests"
Original file line number Diff line number Diff line change
1
+ pub mod tests;
2
+
1
3
fn setup ( ) {
2
- println ! ( "Setup" )
4
+ println ! ( "Setup" )
3
5
}
4
6
5
7
fn teardown ( ) {
6
- println ! ( "Teardown" )
8
+ println ! ( "Teardown" )
7
9
}
8
10
fn main ( ) {
9
- // Setup test environment
10
- setup ( ) ;
11
+ // Setup test environment
12
+ setup ( ) ;
11
13
12
- // TODO: Run the test
14
+ // TODO: Run the test
13
15
14
- // Teardown test environment
15
- teardown ( ) ;
16
+ // Teardown test environment
17
+ teardown ( ) ;
16
18
}
Original file line number Diff line number Diff line change
1
+ #[ derive( Debug ) ]
2
+ pub struct IntegrationTest {
3
+ pub name : & ' static str ,
4
+ pub test_fn : fn ( ) ,
5
+ }
6
+
7
+ inventory:: collect!( IntegrationTest ) ;
You can’t perform that action at this time.
0 commit comments