Open Garados007 opened 1 year ago
This will remove the HTMLCREATION
setting for traceOptions
in RunTests
.
We can also remove the fixLogName
parameter and introduce a UTF_OUTPUT_FIXED_NAME
constant. This makes it easier to transport the information to the necessary places and configuring this.
We could do that yes. But I'd like to retain compatibility with earlier versions, so the existing parameters would need to stay. But also translating them to the new approach would make the code nicer I guess.
During this we will collect more an more "Altlasten" (legacy code which is only used to keep support with old versions) which makes our public API cluttered. At one point we need to make a major release which removes a big parts of it. I don't know when the time is come but we have to keep this in mind. Creating an issue to keep track could be maybe a good idea.
At one point we need to make a major release which removes a big parts of it.
We do have https://github.com/byte-physics/igor-unit-testing-framework/issues/13 to track these breaking changes.
I'm all for removing legacy code, but it involves quite an effort to upgrade on our side.
Right now
RunTests
contains two parameterenableTAP
andenableJU
which selects which output should be generated. Introducing a single output parameter which replacesenableTAP
andenableJU
can simplify the configuration and future extensions. It is only necessary to add more constants, which is easier than introducing new parameter. This can also simplify some internal code paths and function calls.Right now I can think of the following constants:
UTF_OUTPUT_NONE
- no output, only to historyUTF_OUTPUT_JUNIT4
- JUnit 4 implementation (#334)UTF_OUTPUT_JUNIT4_BAMBOO
- our current JUnit implementationUTF_OUTPUT_JUNIT5 = UTF_OUTPUT_OPEN_TEST
- JUnit 5 (#335)UTF_OUTPUT_TAP13
- our current TAP implementationUTF_OUTPUT_TAP14
- TAP 14, there are only few differencesUTF_OUTPUT_HTML
- our Html tracing output, only used if tracing activatedUTF_OUTPUT_COBERTURA
- cobertura output (#206), only used if tracing activatedUTF_OUTPUT_DEFAULT = UTF_OUTPUT_NONE | UTF_OUTPUT_HTML
- the default if output is not setUsage example: