Skip to content
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

[+coverage] unit tests for ArtifactsManager.js and ArtifactPlugin.js #794

Merged
merged 9 commits into from
Jul 2, 2018

Conversation

noomorph
Copy link
Collaborator

@noomorph noomorph commented Jun 21, 2018

  • fix: incorrect this in .untrackArtifact() method in ArtifactsManager
  • code: implements a TODO item - onBeforeRelaunchApp event in test artifact
  • test: adds a suite for artifacts/ArtifactsManager.js
  • test: adds a suite for artifacts/templates/plugin/ArtifactPlugin.js
  • test: adds a suite for artifacts/templates/plugin/TwoSnapshotsPerTestPlugin.js
  • test: adds a suite for artifacts/templates/plugin/WholeTestRecorderPlugin.js
  • test: adds a suite for artifacts/templates/plugin/StartupAndTestRecorderPlugin.test.js
  • test: adds win32 compatibility to detox/src/artifacts/utils/buildDefaultArtifactsRootDirpath.test.js
  • test: adds win32 compatibility to detox/src/artifacts/utils/ArtifactPathBuilder.test.js

@noomorph noomorph requested a review from rotemmiz as a code owner June 21, 2018 14:44
@noomorph noomorph force-pushed the noomorph/unit-tests-for-abstract-plugin-classes branch from 24b2058 to b62e9bf Compare June 29, 2018 12:12
@noomorph noomorph force-pushed the noomorph/unit-tests-for-abstract-plugin-classes branch from b62e9bf to d00ef63 Compare June 29, 2018 13:45
@@ -7,7 +9,7 @@ describe('buildDefaultArtifactsRootDirpath', () => {
});

it('should append subdir if dir does not end with /', () => {
expect(buildDefaultArtifactsRootDirpath('iphone8', 'artifacts')).toBe('artifacts/iphone8.Today 1:23:45PM');
expect(buildDefaultArtifactsRootDirpath('iphone8', 'artifacts')).toBe(path.join('artifacts', 'iphone8.Today 1:23:45PM'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paths/files can not include the character : or any punctuation mark for that matter.

Copy link
Collaborator Author

@noomorph noomorph Jul 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not? It is escaped by Node.js so OS feels OK about this. Works on Win32, Linux and Mac without any problem.

@rotemmiz rotemmiz merged commit fdedc97 into master Jul 2, 2018
@wix wix locked and limited conversation to collaborators Jul 23, 2018
@noomorph noomorph deleted the noomorph/unit-tests-for-abstract-plugin-classes branch July 25, 2018 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants