Ignore Unnecessary Files in your Payload
When you trigger your job, HyperExecute CLI creates a zip of your test scripts before sending it for execution on the HyperExecute Platform.
If you want to ignore any un-necessary files during this process, you can use the .hyperexecuteignore file. The HyperExecuteIgnore file serves as a configuration file to specify files that should be excluded when HyperExecute prepares a zipped archive of your test scripts. This functionality is similar to the .gitignore file used in Git version control.
Benefits
Excluding unnecessary files from the archive offers several advantages:
- Improved Security and Privacy : HyperExecuteIgnore allows you to exclude sensitive information like log files, hidden files, or any other private data from the test archive. This helps maintain security and protects confidential information during test execution.
- Reduced Archive Size : By omitting irrelevant files, the zipped archive containing your test scripts becomes smaller. This is beneficial for storage and transmission purposes.
- Faster Testing Process : A smaller archive size can potentially lead to a faster test execution process, as less data needs to be transferred and uploaded to the testing environment.
How to write .hyperexecuteignore file?
The HyperExecuteIgnore file follows a format similar to the .gitignore file used with Git. It allows the use of wildcards to exclude patterns of files based on specific naming conventions.
examplename
hyperexecute.exe
*.type
examplename/
The above file would make sure that following are excluded while the zip is created:
- examplename: All files and folder with the name
examplename. - examplename.type: All files with the name
examplenameand formattype. - *.type: All files of the format
type. - examplename/: All files and folders under the parent folder called
examplename.
-
By leveraging
.hyperexecuteignorefile, you can achieve similar functionality to.gitignoreand streamline the test execution process by keeping the archive size minimal. -
If both files are present in the directory then the files listed in the
.gitignoreonly are ignored. The items listed in.gitignorefile take precedence over the items listed under.hyperexecuteignore.
