ton-org / blueprint

TON development for professionals - all-in-one tool for writing, testing and deploying smart contracts
475 stars 95 forks source link

Test the Blueprint itself #114

Closed novusnota closed 5 months ago

novusnota commented 5 months ago

Otherwise we have a very peculiar example of a testing framework, which doesn't spot no tests itself. They would help uncover much more bugs than trial-and-error approach.

anton-trunov commented 5 months ago

@novusnota Could you expand on what you mean here? A testing framework for a general purpose language that does not test itself sounds a bit like nonsense, indeed. However, Blueprint is a tool to help with testing DSL programs (smart contracts) and not general purpose programs.

novusnota commented 5 months ago

@anton-trunov for example, it could have e2e CI tests with Tact and FunC: to create new projects, change compiler versions, and check that everything builds and tests.

Because as of now it's somewhat annoying to debug the Blueprint in a pipeline, especially when the target OS is inaccessible:

shifu-meme-blueprint-2

anton-trunov commented 5 months ago

@novusnota that's more or less issue #115

novusnota commented 5 months ago

Yup, but there are unit tests too, which can help make sure (or at least more confident than before), that the internals work fine

anton-trunov commented 5 months ago

Unit tests are double-edged things -- they can sufficiently slow down project development by unnecessarily fixing its internal structure. End-to-end tests are something that I personally would prefer.

novusnota commented 5 months ago

Agreed. Shall this be closed in favor of #115 then?

anton-trunov commented 5 months ago

I guess this one can be closed indeed. But please do could share some more concrete suggestion in #115