TOPdesk / dart-junitreport

An application to generate JUnit XML reports from dart test runs.
https://pub.dartlang.org/packages/junitreport
MIT License
31 stars 45 forks source link

Cleaning up tests #5

Open daniel-v opened 7 years ago

daniel-v commented 7 years ago

I am curious what your thoughts are on this. My question is two-fold:

  1. Looking at what's checked into the repo, I am wondering what the purpose of example-tests is.
  2. If it would worth the effort to write some kind of automated tests (would put my mind at ease)
rspilker commented 7 years ago

The example-tests are tests to generate output that can then be processed by junitreport.

I do agree it is a good idea to create unit tests, just haven't spent time on it. Before investing, I wanted to know if this was a useful tool for others as well.

rspilker commented 7 years ago

I've created a regression test script. It compares the current implementation against a known good file.

The test is located in tools and called test.bat. It is a polyglot file that runs fine in Linux/Mac/Windows provided that dart and diff are available.