Skip to content
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

Unit tests #327

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Unit tests #327

wants to merge 13 commits into from

Conversation

sdumetz
Copy link
Contributor

@sdumetz sdumetz commented Nov 15, 2024

Starting with "I'd like to write a bunch of unit tests to be sure it works as I expected", I ended up having to do a LOT of changes just to have the existing ~50 unit tests to run and be able to add a few more.

I'd definitely like a simpler approach that need less changes but couldn't find one.

If this ends up merged I'll have a bunch more tests on the way to make it a bit more relevant but now that I have it running I'm not 100% convinced it's worth the trouble.

Some of those changes (mainly 741e741) might well break something elsewhere and I didn't even bother to test it past the "it compiles" phase because that's beyond the point until we agree if this should move forward or not.

What do you think @gjcope ?

@gjcope
Copy link
Collaborator

gjcope commented Nov 22, 2024

Generally speaking I'm all in favor of unit tests. There's just a lot to unpack here.

@sdumetz
Copy link
Contributor Author

sdumetz commented Nov 25, 2024

There's just a lot to unpack here.

Unfortunately, there is. In my experience, unit tests are a lot less useful when they require a lot of maintenance to just keep working and I suspect this is the case here.

Just having to keep tsc AND webpack build systems running looks like a "worse of both world"... We'll keep breaking one or the other every other day.

I'll probably come back to it at some point and try to simplify the build.

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.

2 participants