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

Build JS Clarinet test lib on top the core SDK #1109

Closed
Tracked by #1065
hugocaillard opened this issue Jul 31, 2023 · 0 comments · Fixed by #1151
Closed
Tracked by #1065

Build JS Clarinet test lib on top the core SDK #1109

hugocaillard opened this issue Jul 31, 2023 · 0 comments · Fixed by #1151
Assignees
Milestone

Comments

@hugocaillard
Copy link
Collaborator

hugocaillard commented Jul 31, 2023

The clarinet core JS SDK allows to load a clarinet session and interact with it (call functions, get contracts interfaces - ABI, get devnet.toml accounts and get the assets per addresses/contracts).

While the core SDK will allow to interact with a session in many ways, the test kit should provide a nice and easy way to test clarity contracts. It will be the recommended way to test clarinet projects.

  • The test kit library expose a more developer friendly testing API thanks to helpers and wrappers around core
  • Should handle code coverage out of the box in a an easy way
  • Some assertion features for clarity values and events.
  • We should also provide a clarinet 1 compatibility layer (test-compat) on top of core and test-kit that will implement the exact same API as the Deno testing library (Clarinet.test, String.prototype.expect*) to ease the transition of existing projects from the clarinet 1 / deno testing framework to the new one.
@github-project-automation github-project-automation bot moved this to 🆕 New in DevTools Jul 31, 2023
@hugocaillard hugocaillard changed the title Build a lib on top of the library Build Clarinet test lib on top the core SDK Jul 31, 2023
@hugocaillard hugocaillard changed the title Build Clarinet test lib on top the core SDK Build JS Clarinet test lib on top the core SDK Jul 31, 2023
@hugocaillard hugocaillard self-assigned this Jul 31, 2023
@hugocaillard hugocaillard moved this from 🆕 New to 📋 Backlog in DevTools Jul 31, 2023
@hugocaillard hugocaillard moved this from 📋 Backlog to 🏗 In Progress in DevTools Aug 7, 2023
@smcclellan smcclellan added this to the Q3-2023 milestone Aug 14, 2023
@hirosystems hirosystems deleted a comment from sabbyanandan Aug 16, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In Progress to ✅ Done in DevTools Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants