Skip to content

[wip] quick and easy span->test setup#92

Draft
CLowbrow wants to merge 2 commits intomainfrom
alex/easy-tests
Draft

[wip] quick and easy span->test setup#92
CLowbrow wants to merge 2 commits intomainfrom
alex/easy-tests

Conversation

@CLowbrow
Copy link
Contributor

@CLowbrow CLowbrow commented Feb 12, 2026

There is a readme in there for what to do but the short version is that it shifts import test to fixtures and gives you a script that will stub fixtures for you from a json file you have like this:

pnpm new-import-case --name simpsons-cancelation --from /tmp/span.json

I could have done something more complicated but this felt as simple as possible while also getting rid of some of the annoying parts of setting these tests up.

I also pulled all the hardcoded tests out of import.rs and moved them into fixtures.

We can discuss if the fixtures are at the right scope, also. Maybe they should be an array of spans, maybe one span, I'm undecided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant