Test Driven Development - hyelie/MDEditor GitHub Wiki
Test Driven Development
We try to introduce Test-Driven-Development.
We write the tests first and then the detailed implementation.
As an example;
table parser test case commit was committed before table parser detailed implementation commit. And actual development proceeded in the same order.
Test coverage
You can run the test by entering the following command.
./gradlew test
There was a bug where all coverages showed 0%, when create a coverage report using Jacoco test report.
So we used the test coverage supported by IntelliJ.

- Right-click the test package.
- Click
Run with Coverage

- Then, IntelliJ make test coverage.
- You can even extract coverage report.

- Our line coverage achieves over than 90%, excluding the editor package that handles the GUI.