Skip to content

Conversation

0x19
Copy link
Contributor

@0x19 0x19 commented Jun 23, 2023

This PR introduces a comprehensive test suite for the sourcify api service. The suite ensures the correctness and reliability of the various functions provided by the service. Here are the key changes:

  • Adds a SourcifySuite struct that groups together all test cases.
  • Includes test cases for functions such as GetContractMetadata, GetContractSourceCode, GetChains, GetAvailableContractAddresses, CheckContractByAddresses, GetHealth, and GetContractFiles.
  • Each test function makes assertions to verify the correctness of the function under test. This includes checking that no error is returned, and validating returned values where applicable.
  • Includes interoperability fixes for tree, source and address check functions.

These additions will ensure the robustness of the sourcify service by validating its responses against expected results. They will also help to identify any regressions that may occur during future development.

This PR closes #6.

@0x19 0x19 added the enhancement New feature or request label Jun 23, 2023
@0x19 0x19 self-assigned this Jun 23, 2023
@0x19 0x19 merged commit 0d13380 into main Jun 23, 2023
@0x19 0x19 deleted the feature/e2e branch June 23, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce E2E Testing Framework
1 participant