File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,27 @@ def test_debugger_starts(run_command, data_dir):
37
37
programmer = "atmel_ice"
38
38
# Starts debugger
39
39
assert run_command (f"debug -b { fqbn } -P { programmer } { sketch_path } --info" )
40
+
41
+
42
+ def test_debugger_with_pde_sketch_starts (run_command , data_dir ):
43
+ assert run_command ("update" )
44
+
45
+ # Install core
46
+ assert run_command ("core install arduino:samd" )
47
+
48
+ # Create sketch for testing
49
+ sketch_name = "DebuggerPdeSketchStartTest"
50
+ sketch_path = Path (data_dir , sketch_name )
51
+ fqbn = "arduino:samd:mkr1000"
52
+
53
+ assert run_command (f"sketch new { sketch_path } " )
54
+
55
+ # Renames sketch file to pde
56
+ Path (sketch_path , f"{ sketch_name } .ino" ).rename (sketch_path / f"{ sketch_name } .pde" )
57
+
58
+ # Build sketch
59
+ assert run_command (f"compile -b { fqbn } { sketch_path } " )
60
+
61
+ programmer = "atmel_ice"
62
+ # Starts debugger
63
+ assert run_command (f"debug -b { fqbn } -P { programmer } { sketch_path } --info" )
You can’t perform that action at this time.
0 commit comments