Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

aw next #392

Merged
merged 82 commits into from
Feb 15, 2019
Merged

aw next #392

merged 82 commits into from
Feb 15, 2019

Conversation

stoffeastrom
Copy link
Contributor

Introducing interactive

Passing -i will put aw in interactive mode.
Filter on workspace packages and run tests.
Filter on files and run tests.
Run all (from initial glob e.g config file or default)
Update failing snapshots.

Combining it with the watch -w flag and you get a pretty cool workflow.
Saving source or tests will still rerun affected tests only.

node-interactive

@coveralls
Copy link

coveralls commented Oct 1, 2018

Coverage Status

Coverage decreased (-5.9%) to 32.439% when pulling efd2f66 on interactive into f032ad4 on master.

@stoffeastrom
Copy link
Contributor Author

aw next

node-cli

Add new package node-cli which should be used if you only need the node runner.

plugins

Introduce internal plugin concept that multiple runners can reuse.

  • preset-plugin
    • support pre-setting the Chrome runner
  • watch-plugin
    • support adding test files
    • support adding source files
  • interactive-plugin
    • support yarn workspaces, lerna packages
    • support choosing specific test files
    • support updating failed snapshots

mainFields

Support mainFields config similar to webpack. This is beneficial in mono repos so you don't have to build before running any tests.

This could already be solved with the mocks config by manually pointing at your entry file but is a bit tedious.

one config file to rule them all

Better support to use one config for all runners (except Protractor).
Support filtering test files depending on context.

runtime debug

Add debug statements to support troubleshooting. Use https://github.com/visionmedia/debug/

DEBUG='@after-work.js:transform' npx aw -i -w

This will output debug statements from the transform function

@stoffeastrom
Copy link
Contributor Author

Yes of course. ETA this week ;P

Christoffer Åström added 27 commits January 8, 2019 20:29
This ensures keeping the local mock until the test run is finished.
Warn when local mocks are not mached.
Exclude coverage on test files.
@stoffeastrom stoffeastrom merged commit 564425a into master Feb 15, 2019
@stoffeastrom stoffeastrom deleted the interactive branch February 15, 2019 09:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants