-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How run tests? #4609
Comments
You are leaving out a lot of code. What's this Note that you probably don't want to use UART on the pico, most people use the default serial output over USB (which is USB-CDC, not UART), and is available from |
@aykevl It's just structure, example:
For run tests I using USB. Without mapping Pins tests works normal. |
Hello @eleimt could you please provide a complete code sample that shows your specific issue? Thank you. |
File 1: package main
import (
"machine"
"time"
)
func main() {
led := machine.LED
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()
time.Sleep(time.Millisecond * 500)
led.High()
time.Sleep(time.Millisecond * 500)
}
} File 2 package main
import (
"testing"
)
func TestBuild(t *testing.T) {
t.Errorf("Should not produce an error")
} Run command
I'm expecting
|
Hello!
I tried run simple test
but get error
I have
config.go
fileHelp me please...
The text was updated successfully, but these errors were encountered: