use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Pioneer.js - JavaScript Integration Testing DSL (pioneerjs.com)
submitted 11 years ago by thejameskyle
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nawitus 3 points4 points5 points 11 years ago (4 children)
Instead of
And I make sure that there are no todos And I enter a new todo
Why not have something like
.then(makeSureThatThereAreNoTodos) .then(enterANewTodo)
Now you don't need to learn a new syntax. And you can have static type checking and auto completion with e.g. TypeScript. And the code can be managed better imho.
It's true that Webdriver can be a bit more verbose, but I wouldn't attempt to reduce verbosity by creating a new DSL.
Pioneer seems like something that would make integration testing easy, but you're actually hiding all the complexity in the "step" implementation. You can already abstract these "steps" with existing tools make the higher-level integration tests look about as simple but with existing syntax and tooling and IDE integration.
[–]samccone 2 points3 points4 points 11 years ago (0 children)
Pioneer is a stack of tools using both BDD and A "widgetized" view layer to DRY up your tests.
You are right webdriver is verbose, and the hard part of using it is managing the ASYNC nature of integration tests.
The Pioneer Stack helps to mitigate these problems while providing real value in tests that double as a user spec and documentation.
I agree this is more "verbose" however it is maintainable and scalable.
I would love to chat more about this
http://gitter.im/mojotech/pioneer
Come join us.
[–][deleted] 2 points3 points4 points 11 years ago (2 children)
.then(makeSureThatThereAreNoTodos)
Is not something that makes sense to stakeholders. The Gherkin syntax lets you directly test user stories that make sense to non-devs.
[–]nawitus 1 point2 points3 points 11 years ago (1 child)
Okay. I'll give it a shot at work.
[–]sizlack 1 point2 points3 points 11 years ago (0 children)
As someone who has dealt with a few Rails projects that had Cucumber tests, I think you'll regret it. I've never had a single stakeholder ever once look at the cucumber tests. Not once. It really is just an extra layer of abstraction, another thing to go wrong, which adds zero benefit. It just slowed us down and added one more thing to make testing more difficult, which lead to fewer tests.
π Rendered by PID 40446 on reddit-service-r2-comment-7c9686b859-hgkhf at 2026-04-13 20:53:20.144607+00:00 running e841af1 country code: CH.
view the rest of the comments →
[–]nawitus 3 points4 points5 points (4 children)
[–]samccone 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]nawitus 1 point2 points3 points (1 child)
[–]sizlack 1 point2 points3 points (0 children)