-
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we remove support for Pact Web (+ Karma etc.)? #626
Comments
I've decided to retire support for Pact Web. At the moment, the burden of maintaining the extra interface, packages (e.g. Kama) and examples is just not worth it, when we have a first class testing capability with Node JS based packages. Support will be dropped immediately as of the current version, as we aren't planning on any major new features that would benefit any of the packages before the release of the next major edition, and we currently have several challenges maintaining the current version (old version of webpack no longer works with latest versions of node, failing builds with Karma despite no obvious changes from the Pact JS package). |
Background
Pact Web was created to support in browser testing frameworks, such as those that are popular in Angular testing with Karma.
The package
pact-web
is the DSL to talk to Pact - all of the matchers, the main API etc. It is basicallypact
, without any dependencies on the file system or ability to start/stop a web server (because they obviously won’t work in a browser.)Because it can't manage the pact mock service, this means the users are responsible for managing the lifecycle of the Pact mock service (easily done with pre/post scripts), however we created
karma-pact
to simplify this in Karma tests.Problems
Pact web poses challenges for the maintainers, but primarily:
There are reasons to want to keep it though:
Current usage:
This represents only a fraction of the 100k+ downloads a week that Pact JS actually gets.
Proposal
If people are using the package, why might we consider removing it? The main response is that teams could just write pact tests using a separate testing framework (Jest, Mocha etc.).
This isn't ideal, as summarised in: #216 (comment)
See also point (2) above - we want to support teams using the tools and workflows that work for them.
The text was updated successfully, but these errors were encountered: