Skip to content

testing package does not support Benchmarks #491

@13rac1

Description

@13rac1

The following test file:

package main

import (
	"testing"
)

func BenchmarkTest(b *testing.B) {
}

Fails with:

$ tinygo test
# github.com/user/test
main_test.go:7:31: B not declared by package testing

Would be nice if the test file would compile, but ignore Benchmarks. Probably a good starter PR for myself. Done.

Definitely a low priority issue for now

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions