npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@suffolklitlab/alkiln

v5.11.1

Published

Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.

Downloads

932

Readme

ALKiln

ALKiln, or Assembly Line Kiln, is an open source project that helps docassemble developers create automated tests for their interviews (online forms). It works well with the Document Assembly Line Project but isn't dependent on it.

Use ALKiln

Read about how to use this framework in Assembly Line's documentation.

If you have questions or need to report a bug, start a new issue.

The following documentation is for internal developers—those working on ALKiln itself.

Our code

Our code pretends to be a human interacting with online forms (interviews) that have been made with the docassemble open source platform. It looks at the HTML DOM, manipulates it, and interacts with it.

It uses cucumber, puppeteer, and chai.

Our users

Our users are developers of online forms (interviews). Usually they're very new to coding and are unfamiliar with GitHub and with a lot of coding concepts. If they know how to code, it tends to be in Python because that's what docassemble uses. They usually don't have the resource or funding to put into learning these skills.

For example, a pro bono law firm is trying to write a form that people can use to create a restraining order. They're coding it using docassemble. Their users are already going through a hard time, and the forms make them outline their heart wrenching experiences in detail. The developers need to make sure their users don't get system errors right in the middle of that. They use our framework to run the end-to-end tests.

They do good work and we hope to give them a less code-focused way to automate their testing. They avoid having to learn Javascript, GitHub actions, and other such things.

To do that, we use cucumberjs, which uses Gherkin syntax to give a user/developer a more human-like syntax to instruct alkiln on what answers to give to the user's online form.

Contributing

Read about contributing in our CONTRIBUTING.md document. Here's a quick cheat sheet for some commands once you're up and running:

Cheat sheet

Once you've already read the contributing documentation, you can use these as quick reminders for running our internal tests. To set up for the integration tests, create the project on the server:

npm run setup

Use the syntax below to trigger specific tags:

npm run cucumber -- "--tags" "@tagname"

To run the unit tests in isolation:

npm run unit

If you or someone else changes the interview code in ./docassemble, you have to clean up the old data on the server before running setup again:

npm run takedown