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

extending tests to non-code-generation #68

Open
ksjogo opened this issue Dec 20, 2021 · 1 comment
Open

extending tests to non-code-generation #68

ksjogo opened this issue Dec 20, 2021 · 1 comment

Comments

@ksjogo
Copy link
Contributor

ksjogo commented Dec 20, 2021

Currently only the actual code generation is tested.
We should look into creating/having more tests to have higher confidence in changing project-level scope.
#57 is preparing that somewhat with using the real project class to be used in the tests, but some explicit tests not related to codegen could be good.
We might need another test runner for that. And potentially move the generation tests also to that runner.
I will look into that after #57, but am interested to hear thoughts / ideas / opinions.

@johnfn
Copy link
Owner

johnfn commented Dec 22, 2021

I would LOVE this. It's been on my TODO list for so long.

Some way to mock out file/directory structure, and ensure that ts2gd does the right thing (generates node paths correctly, generates files in the right place etc) would be AMAZING.

We might have to use jest or something for this, yeah.

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

No branches or pull requests

2 participants