Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ethereumjs-testing
Advanced tools
Testing utilities for the ethereumjs stack.
Uses the offical Ethereum Tests.
To fetch the latest tests:
git submodule init
git submodule update
cd tests
git pull origin develop
const testing = require('ethereumjs-testing')
testing.getTestsFromArgs(testType, onFile, args = {})
Reads tests of a certain test type from several folders and files
testType
- Type of the test (GeneralStateTests
, BlockchainTests
, VMTests
)onFile
- Function to run the tests (see example)args
forkConfig
- Run tests for selected fork (BlockchainTests
only)dir
- Only run tests from subdirectoryfile
- File filter to applyexcludeDir
- Exclude directory filter to applytest
- Only run a single test casetestsPath
- Path to the tests repository (without the tests
dir)skipTests
- List of tests to skipskipVM
- List of VM tests to skiptesting.getTestFromSource(file, onFile)
Reads custom test from a relative path or file
file
- Relative path or filenameonFile
- Function to run the tests (see example)testing.getSingleFile(file)
Reads a single test file
file
- Path to the fileExamples how to read tests with the API methods above can be found in the ./examples directory.
[1.1.0] - 2018-06-22
FAQs
test utils for ethereumjs-*
The npm package ethereumjs-testing receives a total of 2 weekly downloads. As such, ethereumjs-testing popularity was classified as not popular.
We found that ethereumjs-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.