File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ func New(path *paths.Path) (*Sketch, error) {
86
86
OtherSketchFiles : paths.PathList {},
87
87
AdditionalFiles : paths.PathList {},
88
88
RootFolderFiles : paths.PathList {},
89
+ Metadata : new (Metadata ),
89
90
}
90
91
91
92
err := sketch .checkSketchCasing ()
Original file line number Diff line number Diff line change @@ -644,3 +644,16 @@ def test_board_search(run_command, data_dir):
644
644
installed_boards = {board ["fqbn" ]: board for board in data if "fqbn" in board }
645
645
assert "arduino-beta-development:samd:mkr1000" in installed_boards
646
646
assert "Arduino MKR1000" == installed_boards ["arduino-beta-development:samd:mkr1000" ]["name" ]
647
+
648
+
649
+ def test_board_attach_without_sketch_json (run_command , data_dir ):
650
+ run_command ("update" )
651
+
652
+ sketch_name = "BoardAttachWithoutSketchJson"
653
+ sketch_path = Path (data_dir , sketch_name )
654
+ fqbn = "arduino:avr:uno"
655
+
656
+ # Create a test sketch
657
+ assert run_command (f"sketch new { sketch_path } " )
658
+
659
+ assert run_command (f"board attach { fqbn } { sketch_path } " )
You can’t perform that action at this time.
0 commit comments