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

Add unit tests #88

Open
shoegaze opened this issue May 13, 2024 · 0 comments
Open

Add unit tests #88

shoegaze opened this issue May 13, 2024 · 0 comments
Labels
backlog Soon™ CI lint, test, build, publish

Comments

@shoegaze
Copy link

shoegaze commented May 13, 2024

Purpose

As the codebase gets larger (especially with the DB support), bugs will be more frequent and the project will be harder to maintain.

Adding testing will also make it easier to track existing features as well as more reliability when it comes to implementing new features.

General Implementation

Use something orthodox like Mocha or Jest?

  1. Set up tests/ directory
  2. Add npm test script to package.json
  3. Write scaffolding
  4. Write tests

Scope

  • Commands
    • Test command generation
    • (w/ i18n) command localization etc. (low priority)
  • i18n
    • Make sure locale loading+processing is working
    • Keep track of which locales/text labels are (un)supported
  • Logging
    • Log routing
    • Log level filtering
  • DB (Future)
    • Queries (might be high? priority)
@RalphORama RalphORama added CI lint, test, build, publish backlog Soon™ labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Soon™ CI lint, test, build, publish
Projects
None yet
Development

No branches or pull requests

2 participants