Releases: newrelic/node-test-utilities
v6.1.1
-
Fix pattern matching regression when parsing names of test files.
-
Refactored test pattern filtering by extracting to its own function. Also added a few missing test pattern test cases.
v6.1.0
-
Added the
-P, --pattern
flag to allow filtering tests by keyword(s). -
Added support for running specific test files by name or globbing pattern.
-
Added a
--samples
value to CLI to allow an override of sampling for a given test run.Global sample value will be used when it is less than the samples value set on a given package in the tests stanza.
-
Added ability to run versioned tests against version tags. For example:
newrelic@latest
.When a version such as
package@latest
is specified in the versioned testpackage.json
declarations, it won't directly satisfy semver matches against the package versions manually pulled down and cached. The runner now attempts to directly install the configured version, which also results in a test failure if the package fails to install. Previously, failure to be able to install a dependency would log a warning and then just not run any tests and let CI pass. -
Upgraded setup-node CI job to v2 and changed the linting node version to lts/* for future proofing.
-
Added @newrelic/eslint-config to rely on a centralized eslint ruleset.
-
Added a pre-commit hook to check if package.json changes and run oss third-party manifest and oss third-party notices.
This will ensure the third_party_manifest.json and THIRD_PARTY_NOTICES.md are up to date.
-
Changed runner output to only list package versions when a test fails.
v6.0.0
-
Added support for Node 16.
-
BREAKING Removed support for Node 10.
The minimum supported version is now Node v12. For further information on our support policy, see: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent.
-
Updated package.json to use files list instead of
.npmignore
. -
Bumped
tap
to ^15.0.9. -
Upgraded
sinon
to ^11.1.1.
v5.1.0
- Added enumerating and printing versions of every module being tested.
- Added flag to install every package on each test run for npm v7 compatibility.
- Added husky + lint-staged to run linting on all staged files.
v5.0.0
v4.1.2
-
Creates config instance via Config.createInstance() to pass to agent instead of using Config.initialize().
Previously, the agent and created segments could end up with different config instances resulting in config updates (such as attribute configuration) not propagating correctly for tests. Now, the agent uses the same initialized singleton similar to regular execution.
v4.1.1
- Improved handling of soft-matching segments for cases where siblings have duplicate names.
v4.1.0
- Added TestAgent.getAgentApi() function that returns an agent API instance for the underlying agent instance.
v4.0.0
-
Updated to Apache 2.0 license.
-
Bumped minimum dev dependency of newrelic (agent) to 6.11 for license matching.
-
Updated metric retrieval from agent for
assert.metrics
to match newer agent versions.Breaking: assertions are now only compatible with newrelic (agent) versions 6+.
-
Added third party notices file and metadata for dependencies.
-
Updated readme with more detail.
-
Added issue templates for bugs and enhancements.
-
Added code of conduct file.
-
Added contributing guide.
-
Added pull request template.
-
Migrated CI to GitHub Actions.
-
Added copyright headers to all source files.
-
Added .vscode to .gitignore.
-
Added additional items to .npmignore.