-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Codegen]: Refactor codegen-v1 to allow to generate mobile tests only
- Loading branch information
1 parent
b6831b5
commit d9a9694
Showing
3 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ end | |
|
||
coin_id = command_line_args[0] | ||
|
||
generate_skeleton(coin_id, "") | ||
generate_skeleton(coin_id, "full") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# Sript for creating new skeleton files for new coin mobile tests. See also `newcoin` or `newevmchain`. | ||
# It is considered to be used by codegen-v2 tool until Swift and Android tests generating supported. | ||
# 1. Add relevant entry to registry.json (in order to minimize merge conflict, don't add at the very end) | ||
# 2. Invoke this script with the id of the coin, e.g.: codegen/bin/newcoin-mobile-tests ethereum | ||
|
||
require 'fileutils' | ||
|
||
CurrentDir = File.dirname(__FILE__) | ||
$LOAD_PATH.unshift(File.join(CurrentDir, '..', 'lib')) | ||
require 'coin_skeleton_gen' | ||
|
||
command_line_args = ARGV | ||
if command_line_args.length < 1 | ||
puts "Usage: newcoin-mobile-tests <new_coin_id>" | ||
return | ||
end | ||
|
||
coin_id = command_line_args[0] | ||
|
||
generate_skeleton(coin_id, "mobile-tests") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters