-
Notifications
You must be signed in to change notification settings - Fork 2
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
v3.0.0 #3
Comments
I have my first contribution to this. I'm setting right now a reliable way to set entries on the You assume here that the root of the project requiring the package is two steps above (the folder of your project and I have installed my package under development in a local folder and required it as Thought it may be of interest to you! 😉 EDIT: |
Honestly, I regret even adding that hook in the first place. That too should go, for the very reason you've just explained. Authors shouldn't need hand-holding to add an entry to their |
Mocha headless implies it won't open the report window when running inside Atom? I'm planning another Atom package to act as test runner, and I would like to run my AtomMocha specs in the background, dynamically on any detected change, instead of firing them manually (with no additional open window). Do you think it would be possible/feasible to integrate this behavior in your new on-planning version? Maybe the easiest approach would be executing specs as |
Hey @cgalvarez,
I'm afraid I have little control over the latter, because this is how Atom's test-runner API is setup. It doesn't even allow arbitrary options to be passed to the test-runner, meaning I can't simply do Your best bet is to run this as a detached process, as you said: λ atom --test specs/*.js 2>&1 >/path/to/test.log & Yes, this is a serious pain-in-the-ass, but then again, Atom has never been very friendly to command-line users. 😞 |
Hi @Alhadis ! More insights for this:
Regarding the development of the new version... why not to open a new dev branch which other contributors could push to (like me!)? This approach is the one I'm currently using. Pushing all changes to that |
The only dependencies I add are those which are strictly necessary.
I prefer to audit and document releases by hand. Moreover,
Good idea. 👍 I even wrote a function to do that quite recently, when I was refactoring
I prefer working off You are of course perfectly welcome to start working on the next version, but please be sure to read this first. 😉 |
Me too (yesterday), although I reject the promise on timeout instead of throwing.
That's exactly what I was (unsuccessfully) trying to say 😆. I suppose rewriting the package could be done in a separate branch and will imply releasing a new version, so you can review it and ensure the whole checklist in this issue is completed before merging.
Well, then I think my first contribution to the next version will be adding this to a Contributing section in the |
Atom v1.25.0 changed how user configs were updated on disk, subsequently removing some properties which we were relying on to find `config.cson`. This is causing `loadEditorSettings` to raise an exception at startup. Since this feature was headed for the incinerator anyway, we may as well cull it early (it was a stupid idea to begin with, among many others yet to be obliterated). See #3.
Looks like support for JSON/YAML configs is coming anyway; Mocha v6.0 is due to include |
@cgalvarez Good news, I've added support for Mocha 6's new Let me know what you think, and if you hit any bugs I must've missed... :\ |
Change of plans. Gonna keep things the way they are, and all future work will be concentrating on decoupling reusable code from Atom-specific projects, as I intend to abandon the editor in favour of one yet-to-be-built. This means keeping the spiffy TTY-style browser reporter, so it can be used in any browser-based Mocha environment. Not gonna let all that hard work die with Atom's userbase. 👍 |
Literally everything about this module's API and documentation needs improvement. Options aren't obvious, they're weirdly named, and sloppily detailed. The worst offence, however, stems from how unwieldy the most rudimentary options are to configure: which is the exact opposite of how I envisioned this project.
Of course, this isn't surprising: everything was developed as a brisk diversion from
file-icons
, from which this spec-runner originally sprang from (and was developed for). Everything was either rushed or marked with a mental memo: "redo this later". Little has improved other than features hurriedly added when they were needed...So. Time to pen a to-do list; and having my rambling words in cold writing limits my excuses to forget:
API (last edited March 2019)
Use--disable-
as a prefix instead of--no-
Actually, that'd be inconsistent with Mocha 6/
yargs-parser
.Allow environment-specific Mocha options to be set inmocha.interactive.opts
andmocha.headless.opts
files, in addition to the usualmocha.opts
No longer an issue now that
.mocharc.js
can programmatically set options based on globals. 👍Add support for configuring Atom-Mocha using--reporter-options
option (somocha
can run tests natively alongside Atom in the same spec folder)Mocha v6 no longer complains if a foreign setting was picked up in a config file. 🎉 Another issue solved!
Offer an easy/obvious way to specify the main spec directory.We'll just call the option
spec
, which is exactly what Mocha uses (although apparently informally? Runningmocha --spec ~/some/other/directory/tests
works, but not when run withmocha --specs
, bringing me to believe this is canon (we'll supportspecs
as a non-standard alias though).UX
Add unintrusive progress-barreporter
is set todot
in interactive mode.Plus, let's use a cute menu accelerator which coincides with the user's
SIGINT
keybinding.--bail
--grep
/--fgrep
temporarily, but that'll require a UI component because Electron gavewindow.prompt
the shaft, lolautoIt
/when
in favour ofmocha-when
moduleDeletions / Changes
Nuke
postinstall
hook. AddingatomTestRunner
to one'spackage.json
should be done manually by developers.Remove all reporter-specific settings from top-level configs. Reporter-level tweaking should be done with JavaScript or CSS.
autoIt
mocha-when
, which will also handle thewhen
global.autoScroll
clipPaths:
escapeHTML
attachToDOM
flipStack
hidePending
hideStatBar
opacity
linkPaths
slide
stackFilter
title
minimal
--reporter
type, which should be explicit anywayformatCode
css
/js
js
should kinda be ditched in favour of variable-length--require
options…The text was updated successfully, but these errors were encountered: