Comments (4)
Hi! This is because you try to use old version of tests. Documentation on new tests could be found here: https://github.com/disintar/toncli/blob/master/docs/advanced/func_tests_new.md
If you prefer to use old tests - you need to use --old
flag, but it's not recommended.
from toncli.
It doesn't work. When I run toncli run_tests --old
it produces:
INFO: 🌈 Start tests
INFO: 🥌 Build successfully, check out ./build
[ 1][t 0][2022-09-10 14:12:46.953886][Fift.cpp:67] top: abort
level 1: swap { <continuation 0xe80d1026b40> } if **HERE** drop
level 2: [in @PROC:<{:] over @fail-ifdef **HERE** 2 { <continuation 0xe804ac8a980> } does null swap @doafter<{ 0 32 u,
level 3: <text interpreter continuation>
level 4: <continuation 0xe804ac98700>
level 5: <text interpreter continuation>
[ 1][t 0][2022-09-10 14:12:46.953983][fift-main.cpp:204] Error interpreting file `/tmp/tmpuqaemtr_.fif`: contract_tests.fif:1502: PROC:<{:procedure already defined
from toncli.
@vtamara this error means that some proc IDs in your test are the same. Guess something wrong in new tests-libs helpers. We really don't want to support old tests anymore, so why they are deprecated. I suggest to use new tests system, it's much better.
DECLPROC power
DECLPROC sqrt
DECLPROC avg
DECLPROC exp
DECLPROC log2
114362 DECLMETHOD generate_empty_address
103563 DECLMETHOD generate_internal_address
71142 DECLMETHOD generate_internal_address_with_custom_data
105789 DECLMETHOD generate_external_address
77760 DECLMETHOD generate_external_address_with_custom_data
119020 DECLMETHOD generate_var_address
101577 DECLMETHOD generate_var_address_with_custom_data
DECLPROC generate_any_address
69682 DECLMETHOD init_environment
104832 DECLMETHOD storage_key
68533 DECLMETHOD load_storage_with_tag
113134 DECLMETHOD save_storage_with_tag
85860 DECLMETHOD get_c7
78457 DECLMETHOD invoke_method
93676 DECLMETHOD invoke_method_expect_fail
127733 DECLMETHOD assert_no_actions
DECLPROC parse_send_raw_message
DECLPROC parse_lib_code
DECLPROC parse_raw_reserve
DECLPROC parse_set_code
DECLPROC parse_c5
66092 DECLMETHOD generate_init_state
86734 DECLMETHOD generate_init_state_with_data
70014 DECLMETHOD parse_init_state
71497 DECLMETHOD random_query_id
128031 DECLMETHOD generate_internal_message_body
103755 DECLMETHOD generate_internal_message_custom
125184 DECLMETHOD generate_nft_transfer_request
93113 DECLMETHOD generate_nft_get_static_data_request
80940 DECLMETHOD generate_nft_deploy_request
72255 DECLMETHOD generate_jetton_burn_request
DECLPROC generate_jetton_burn_notification
100003 DECLMETHOD generate_jetton_transfer_request
129018 DECLMETHOD generate_internal_message
108731 DECLMETHOD generate_internal_message_relaxed
115574 DECLMETHOD generate_external_in_message
78122 DECLMETHOD generate_external_in_message_with_empty_source_address
94514 DECLMETHOD generate_external_out_message
75192 DECLMETHOD generate_external_out_message_with_empty_destination_address
77897 DECLMETHOD generate_external_out_message_relaxed
94767 DECLMETHOD parse_internal_message
97177 DECLMETHOD parse_external_message
76887 DECLMETHOD generate_external_out_message_with_bad_source_address
113901 DECLMETHOD generate_external_out_message_with_bad_destination_address
124331 DECLMETHOD generate_external_in_message_with_bad_source_address
128854 DECLMETHOD generate_external_in_message_with_bad_destination_address
122899 DECLMETHOD generate_internal_message_with_bad_grams_data
105345 DECLMETHOD generate_internal_message_with_bad_init_state_data
DECLPROC token_snake_len
DECLPROC get_snake_tail
103208 DECLMETHOD snake_concat
DECLPROC snake_concat_tagged
DECLPROC snake_equal?
0 DECLMETHOD test_30_12_data
1 DECLMETHOD test_30_12
from toncli.
In my humble opinion toncli should be able to run in two modes without issue:
- To run with the debugging ton that has available more debuggin primitives.
- With the --old flag it should be able to run in the standard ton that is where the real smart contract will run.
from toncli.
Related Issues (20)
- bitstring library removed BitString class in the 4.x.x version HOT 4
- toncli run_tests -> "Stack underflow. Last op-code consume more elements ..." HOT 4
- Toncli deploys into the same address every time HOT 1
- WARNING: 🤖 Can't find executable for fift, please specify it HOT 1
- Installation step: yandex disk for libcrypto-1_1-x64.dll HOT 1
- Windows binaries download expired HOT 1
- toncli command not working for installation
- Toncli run_tests => [__test_equal_slices_contract] status: [FAIL], code: [7] HOT 1
- Tests are falling, probably due to the lack of a file stdlib.fc
- toncli does not provide deployed contract address HOT 1
- Error during deploy with toncli from master HOT 2
- Test libs import order HOT 1
- Toncli from master can't be install via pip not in edit mode
- Add working examples of NFT and Jettons for toncli HOT 1
- How to use new tests? What is the current situation over TON binaries? HOT 1
- Unable to use toncli in directories containing Unicode characters in names
- Toncli tests success on out-of-gas HOT 1
- broken with latest 4.x.x bitstring HOT 2
- Question: how to 'initialize' deploy-wallet on mainnet? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toncli.