doc-detective / doc-detective-core

The NPM package that powers Doc Detective's testing functionality.
https://doc-detective.com
MIT License
8 stars 2 forks source link

When building tests from inline statements, test compilation doesn't fail when there are conflicting test IDs #159

Open hawkeyexl opened 2 months ago

hawkeyexl commented 2 months ago

The following markdown should fail to compile because of conflicting test IDs, but it doesn't. Worse, it appends the steps under the second test to those in the first test, but doesn't include the setup parameter.

[comment]: # (test {"id":"foobar"})

...

[comment]: # (test {"id":"foobar", "setup": "setup.spec.json"})
hawkeyexl commented 1 month ago

Failing the step would break current behaviors. Instead, we should append a UUID to duplicate test IDs.