Skip to content
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

Integration testing with Node Test Runner #5534

Closed
5 tasks
Tracked by #5609
kanej opened this issue Jul 18, 2024 · 0 comments
Closed
5 tasks
Tracked by #5609

Integration testing with Node Test Runner #5534

kanej opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
status:ready This issue is ready to be worked on v-next A Hardhat v3 development task

Comments

@kanej
Copy link
Member

kanej commented Jul 18, 2024

Add integration testing support to Hardhat v3 based on Node Test Runner.

Node Test Runner support will be implemented as a separate package and plugin. It will add a hardhat test task that will initialize the hre and then execute the test suites, injecting the HRE into the context.

Full details can be find in the design doc.

TODO

  • Add a new @ignored/hardhat-node-test-runner package under ./v-next
  • Implement as a plugin task shim code similar to v2 mocha, that runs the designated test folder js/ts files as tests in Node test runner. Before the tests are run the HRE should be initialized and injected into the context.
  • Include the Hardhat custom test reporter in the default execution
  • Add @ignored/hardhat-node-test-runner to the example project and add some basic integration tests confirming that testing works and that the hre is being initialized
  • Add support for --only to the npx hardhat test command

Out of Scope

  • Coverage
  • Gas reporting
  • Parallel test execution
  • Support for console.log in tests
@kanej kanej added the v-next A Hardhat v3 development task label Jul 18, 2024
@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Jul 18, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Jul 18, 2024
@kanej kanej moved this from Backlog to To-do in Hardhat Jul 18, 2024
@zoeyTM zoeyTM moved this from To-do to In Progress in Hardhat Jul 30, 2024
@kanej kanej mentioned this issue Aug 15, 2024
6 tasks
@kanej kanej closed this as completed Aug 26, 2024
@github-project-automation github-project-automation bot moved this from In Review to Done in Hardhat Aug 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:ready This issue is ready to be worked on v-next A Hardhat v3 development task
Projects
Archived in project
Development

No branches or pull requests

2 participants