Skip to content

Releases: newrelic/node-test-utilities

v6.1.1

20 Oct 18:19
Compare
Choose a tag to compare
  • 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

19 Oct 23:33
Compare
Choose a tag to compare
  • 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 test package.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

20 Jul 16:36
Compare
Choose a tag to compare

v5.1.0

11 May 18:41
Compare
Choose a tag to compare
  • 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

03 Nov 18:18
Compare
Choose a tag to compare
  • Added Node v14.x to CI.
  • Removed Node v8.x from CI.
  • Updates to README to match New Relic OSS template.

v4.1.2

01 Oct 18:39
Compare
Choose a tag to compare
  • 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

16 Sep 17:19
Compare
Choose a tag to compare
  • Improved handling of soft-matching segments for cases where siblings have duplicate names.

v4.1.0

03 Sep 17:04
Compare
Choose a tag to compare
  • Added TestAgent.getAgentApi() function that returns an agent API instance for the underlying agent instance.

v4.0.0

21 Jul 22:17
Compare
Choose a tag to compare
  • 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.