Replies: 1 comment 5 replies
-
Also note - 100% not backwards compatible. Since the names and exports have changed, and the test suites are stubbed (not overwritten) this means anyone who has been using the old pattern of test imports will have built errors. Without building some complicated upgrade path rewriter, not much we can do about it. As far as I know, very few users currently use the auto tests, but it means everyone that does will start seeing errors |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The idea with the auto tests was to make writing tests easier, but the end result was a bit too complicated - some people didn't know which test method to use or why more than 1 existed.
Would like to simplify this in a second pass - the idea is to trim out the stuff that was not being used, and cut down on the complexity.
currently, this is an example test output:
test helper suite - nodegene/tests/domain.ts:
and the output tests - domains/tests/domain.api.spec.ts:
having the default happy path tester and the
getRequest
method ended up being more complicated than it needed to be, so I'm proposing something simpler:nodegen/tests/domain:
and the auto-gen test suite
domains/tests/domain.api.spec:
The main difference being the default happy path test is moved from the helper suite into the spec (so that the user can just delete it when they start writing more useful tests), and the test suite contains just a few helpers in a less-nested format.
Beta Was this translation helpful? Give feedback.
All reactions