agda-mode icon indicating copy to clipboard operation
agda-mode copied to clipboard

Write tests

Open banacorn opened this issue 9 years ago • 2 comments

To-do

  • [x] setup testing environment
  • [x] continuous integration
  • [ ] actually write down some tests
    • [x] package activation
    • [ ] commands
    • [ ] input method
    • [ ] others

banacorn avatar Jan 12 '16 16:01 banacorn

What's the status on this one? It struck me while I was blundering about breaking stuff that you get a fair few tests for free that way. I don't quite know enough about Atom packages to figure out how to format tests, though.

omega12345 avatar Apr 08 '19 08:04 omega12345

There are many test suites (Jasmine, Mocha, Jest ...). In theory we can use any of the suite we like to write tests. However, some tests require bindings to Atom, and Atom only "supports" an old version of Jasmine, other suites would require some addition machinery.

The suite I'm prefer is Jest (works great with React, has Reasonml binding ...), but the binding is either unmaintained and dunno how to use, or broken. I think I can get this to work given I have enough time. But perhaps I should just stop using this as an excuse and starting writing unit tests that doesn't require Atom anyway :)

banacorn avatar Apr 21 '19 17:04 banacorn