Skip to content

Unit test fails when a fork is checked out. #85

@sruehl

Description

@sruehl

when running the unit test for TestStacktrace on a fork on a local machine it fails.

=== RUN   TestStacktrace
=== PAUSE TestStacktrace
=== CONT  TestStacktrace
    stacktrace_test.go:52: 
        	Error Trace:	/home/sruehl/dev/workspace/sruehl/oops/stacktrace_test.go:52
        	Error:      	"/home/sruehl/dev/workspace/sruehl/oops/stacktrace_test.go" does not contain "github.com/samber/oops"
        	Test:       	TestStacktrace
        	Messages:   	frame file /home/sruehl/dev/workspace/sruehl/oops/stacktrace_test.go should contain github.com/samber/oops

Maybe we need to add a check there and if it detects it is not on the main project it just calls t.Skip()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions