Skip to content

Add onServerReady, onTestsComplete, onIstanbulComplete Hooks #408

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

Merged
merged 2 commits into from
Sep 20, 2019

Conversation

cgewecke
Copy link
Member

@cgewecke cgewecke commented Sep 20, 2019

These allow you to run preparatory scripts which require a connection to the ganache server before executing the tests. Launching the Oraclize/Provable is an example use-case. Terminal hooks allow you to clean resources up or post-process generated artifacts.

These hooks are meant to mitigate some of the problems raised by having an in-process client which cannot be launched separately at the command line. See openzeppelin 1918

@codecov-io
Copy link

codecov-io commented Sep 20, 2019

Codecov Report

Merging #408 into truffle-plugin will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           truffle-plugin     #408      +/-   ##
==================================================
+ Coverage           96.75%   96.78%   +0.03%     
==================================================
  Files                  14       14              
  Lines                 647      654       +7     
==================================================
+ Hits                  626      633       +7     
  Misses                 21       21
Impacted Files Coverage Δ
lib/api.js 95.79% <100%> (+0.14%) ⬆️
dist/truffle.plugin.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d57d6fd...1cfc1d7. Read the comment docs.

@cgewecke cgewecke merged commit 635d9bc into truffle-plugin Sep 20, 2019
@cgewecke cgewecke deleted the add/async-hooks branch September 20, 2019 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants