ue4-test-runner 0.0.3 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 594e01c8425ca46521e70383e482867f1e9ed3a286b1d4d14737dbd6368cf94f
4
- data.tar.gz: ebe2aae2e30365c2d9d15f6ea402c9b6b77315df5239bd52308357b69e721469
3
+ metadata.gz: e173e58ac2af6e20415749783433dfd00f68aaa25b4c01db4612a67cbbf0b181
4
+ data.tar.gz: c765e35d12809641701f1dcac0a4c50a46a1945b193b7c8cd455d44a684ffc71
5
5
  SHA512:
6
- metadata.gz: a4e6a21afc9528cafab2a0413e3f7b06474b6693a5a411ca893a72fa0f3cd91a5ca167736f9d71f079d2acb66dc7b75bb57b7fb90c5c25e706750b8df4975b3f
7
- data.tar.gz: dd0893409f266cb8d4f8f8269ea46d6f780911dd94b1f5673d77e355d3a278ddc7e0e3e00ac9639f85dff72fa48a34a47a1b69aea2ea13dca7a436633ea874b0
6
+ metadata.gz: 528db3f449f6872898af2dd7f6010070b51e33cee7576d7dfa8d087e02ef0a639771b6a81c78a5e27070b051a142b77cbf17f7521cd293621a5556a8f436c2ac
7
+ data.tar.gz: 3d9470144a43b98830a601189a8babe7e9bf38ef2497d211495bb123ad1a39057ce7459bc15e60ab5f914b4f62df5dce9a1e6174f2c443c91f5c0534a5acc4dd
@@ -0,0 +1 @@
1
+ require 'ue4-test-runner'
data/lib/runner.rb CHANGED
@@ -6,6 +6,7 @@ module UE4TestRunner
6
6
  EXECUTABLE_LOCATION = "\\Engine\\Binaries\\Win64\\UE4Editor-Cmd.exe"
7
7
  FLAGS = '-unattended -silent -nopause -NullRHI -testexit="Automation Test Queue Empty" -log -log=RunTests.log'
8
8
  MISSING_FILE_ERROR_MESSAGE = "File does not exists D:"
9
+ MISSING_PROJECT_FILE_ERROR_MESSAGE = "uproject file does not exists D: make sure you're in the ue4 project root directory"
9
10
  TEST_RESULT_DIR = 'TestResult'
10
11
 
11
12
  def run
@@ -20,8 +21,8 @@ module UE4TestRunner
20
21
  tests.each {|test| puts test.pretty}
21
22
 
22
23
  FileUtils.rm_rf("#{current_directory}#{TEST_RESULT_DIR}")
23
- rescue RuntimeError
24
- puts MISSING_FILE_ERROR_MESSAGE
24
+ rescue RuntimeError => error
25
+ puts error
25
26
  end
26
27
  end
27
28
 
@@ -31,7 +32,7 @@ module UE4TestRunner
31
32
 
32
33
  def project_file_path
33
34
  file = Dir.entries(".").select {|file_name| file_name.include?('.uproject')}.first
34
- raise MISSING_FILE_ERROR_MESSAGE if file.nil?
35
+ raise MISSING_PROJECT_FILE_ERROR_MESSAGE if file.nil?
35
36
  File.expand_path(file, File.dirname(file))
36
37
  end
37
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ue4-test-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo Gerstner
@@ -13,11 +13,12 @@ dependencies: []
13
13
  description:
14
14
  email:
15
15
  - facugerstner29@gmail.com
16
- executables: []
16
+ executables:
17
+ - ue4-test-runner
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - bin/ue4-test-runner.exe
21
+ - bin/ue4-test-runner
21
22
  - lib/TestResult/index.html
22
23
  - lib/TestResult/index.json
23
24
  - lib/base_test.rb
Binary file