-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Tests files should not be compiled with the theia code #536
Comments
I don't understand this request. |
I mean we should not compile *.spec.ts when we compile theia with yarn.build |
Ok, why? |
In the case of the globalize PR you have like: test.spec.ts generator.ts And this package would be built with: So since the test requires localize.ts and that this is a generated file by the package it fails to compile. We would need to compile the package, run the generator, then compile the test. |
I think also it will save time when we package theia, we don't need to build the tests then.. |
why do we need to compile it first? I think it should be "generate, compile, test". |
Well the generator needs to be compiled... |
Ah, ok I didn't realize it is part of the runtime code. The generator should be in a separate package, actually being moved to |
The problem in this case is that an extension dev may require that generator so it needs to be part of a proper package I think ? So it can be published etc ? |
Yes, that is the case with all our dev dependencies. And the cli exposes the tools to extension developers. |
OK So the dev-deps will be published ? |
Yes. Extension developers (and Theia packaging jobs) will pull the tools from npm.js. |
OK great then! :) We'll move it there |
I believe the issue can be successfully closed, most dev packages are published (except for `ext-scripts). Please feel free to re-open the issue if the issue is still relevant. |
I think test files should be compiled only before the tests runs.
This would also allow tests that may depend on previously compiled code in the same package. Like the globalize PR needs to do.
Objections?
The text was updated successfully, but these errors were encountered: