File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: prelude:: * ;
2
+ use rstest:: rstest;
2
3
use std:: path:: { Path , PathBuf } ;
3
4
use std:: sync:: Mutex ;
4
5
use tempfile:: TempDir ;
@@ -25,7 +26,12 @@ fn assert_benchmarks_created(binary_dir: &Path, n: usize) {
25
26
assert_eq ! ( entries. len( ) , n) ;
26
27
}
27
28
28
- fn run_benchmark_for_project ( project_name : & str ) {
29
+ #[ rstest]
30
+ // #[case("caddy")]
31
+ #[ case( "fzf" ) ]
32
+ #[ case( "opentelemetry-go" ) ]
33
+ #[ case( "golang-benchmarks" ) ]
34
+ fn test_build_and_run ( #[ case] project_name : & str ) {
29
35
let temp_dir = setup_test_project ( project_name) . unwrap ( ) ;
30
36
31
37
let binary_dir = temp_dir. path ( ) . join ( ".codspeed" ) . join ( "walltime" ) ;
@@ -44,24 +50,3 @@ fn run_benchmark_for_project(project_name: &str) {
44
50
45
51
// TODO: Assert that we have a results.json?
46
52
}
47
-
48
- #[ ignore = "doesn't work atm" ]
49
- #[ test]
50
- fn test_caddy_benchmarks ( ) {
51
- run_benchmark_for_project ( "caddy" ) ;
52
- }
53
-
54
- #[ test]
55
- fn test_fzf_benchmarks ( ) {
56
- run_benchmark_for_project ( "fzf" ) ;
57
- }
58
-
59
- #[ test]
60
- fn test_opentelemetry_go_benchmarks ( ) {
61
- run_benchmark_for_project ( "opentelemetry-go" ) ;
62
- }
63
-
64
- #[ test]
65
- fn test_golang_benchmarks ( ) {
66
- run_benchmark_for_project ( "golang-benchmarks" ) ;
67
- }
You can’t perform that action at this time.
0 commit comments