chainstacklabs / developer-hub-content

Articles submitted by the community for the Chainstack Developer Hub content initiative
34 stars 14 forks source link

[PROPOSAL] End to end testing for your decentralized application #92

Closed yehia67 closed 3 months ago

yehia67 commented 1 year ago
Genesis3800 commented 1 year ago

A little more breakdown please.

Specifically,

  1. This is a DAPP testing tutorial, right? Will you be including testing for smart contract?

  2. Which framework will you be using to write the smart contract? We prefer Foundry, but Hardhat also works.

  3. Can you include a section where you explain signature signing a little bit?

yehia67 commented 1 year ago
  1. Tutorial to test smart contracts and the frontend app, I am going to add unit testing and integration testing for the smart contract, and the end-to-end testing will be done by an automation tool(Synpress) from the frontend app
  2. I prefer Foundry, too, because doing tests with solidity is much more efficient. If you are interested in Foundry, I will also add some topics related to testing with the foundry framework (e.g., fuzzy testing, smartContractTest.sol ...etc.)
  3. Testing signatures is challenging because it passes the unit testing quickly, but sometimes it only works on the front end for other external reasons. for example a) User passed the signature validation time b) User use Ledger wallet, which produces a different personal signature So it is better to test signatures with the signing wallet with an automation tool like Synpress.

I updated the topics @Genesis3800.

Genesis3800 commented 1 year ago

Approving this. Looking forward to seeing your drafts.

soos3d commented 1 year ago

Hi @yehia67, I heard you have news on these proposals! Feel free to reach out 😄

yehia67 commented 1 year ago

Hello @soos3d ! Yep it is almost ready 😄 I am doing on last check then I will submit a PR 🏃