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 test for #165 #170

Merged

Conversation

ghtyrant
Copy link
Contributor

📑 Summary

Add an automated test for #165

Resolves #166

📏 Design Decisions

I simply run mmdc in a container, verify it doesn't crash and then compare its output to an expected value.
I'm not quite happy with this setup, as run_tests.sh is meant to be called with either test-positive or test-negative - this new test will run in both cases. I'd suggest removing the INPUT_DATA argument and hard-coding test-positive and test-negative.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted master branch

@MindaugasLaganeckas
Copy link
Member

@ghtyrant : thanks a lot for the PR 😄 !

@MindaugasLaganeckas MindaugasLaganeckas merged commit 929bd35 into mermaid-js:master Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement an automated test for #165
2 participants